From 50d50825cfefc169b4d91ea8c2f4789f3dd2506e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 30 Oct 2024 18:39:18 +0100 Subject: [PATCH] Removed depracated modules and doc html filesof external libs. --- htdocs/includes/ace/editor.html | 39 - htdocs/includes/ace/kitchen-sink.html | 56 -- .../ckeditor/plugins/exportpdf/CHANGELOG.md | 72 -- .../ckeditor/plugins/exportpdf/LICENSE.md | 18 - .../ckeditor/plugins/exportpdf/README.md | 102 --- .../plugins/exportpdf/plugindefinition.js | 1 - .../plugins/exportpdf/tests/_helpers/tools.js | 5 - .../plugins/exportpdf/tests/authentication.js | 6 - .../plugins/exportpdf/tests/exportpdf.js | 10 - .../tests/manual/configfilename.html | 27 - .../exportpdf/tests/manual/configfilename.md | 46 -- .../exportpdf/tests/manual/emptyeditor.html | 18 - .../exportpdf/tests/manual/emptyeditor.md | 34 - .../exportpdf/tests/manual/integration.html | 148 ---- .../exportpdf/tests/manual/integration.md | 12 - .../tests/manual/integrations/easyimage.html | 27 - .../tests/manual/integrations/easyimage.md | 26 - .../exportpdf/tests/manual/notifications.html | 19 - .../exportpdf/tests/manual/notifications.md | 36 - .../tests/manual/notificationsasync.html | 45 -- .../tests/manual/notificationsasync.md | 27 - .../exportpdf/tests/manual/paperformat.html | 29 - .../exportpdf/tests/manual/paperformat.md | 18 - .../exportpdf/tests/manual/readonly.html | 18 - .../exportpdf/tests/manual/readonly.md | 28 - .../exportpdf/tests/manual/stylesheets.html | 36 - .../exportpdf/tests/manual/stylesheets.md | 19 - .../exportpdf/tests/manual/tokenfetching.html | 23 - .../exportpdf/tests/manual/tokenfetching.md | 19 - .../tests/manual/tokentwoeditorscorrect.html | 38 - .../tests/manual/tokentwoeditorscorrect.md | 14 - .../tests/manual/tokentwoeditorswrong.html | 38 - .../tests/manual/tokentwoeditorswrong.md | 14 - .../tests/manual/tokenwithouturl.html | 19 - .../exportpdf/tests/manual/tokenwithouturl.md | 31 - .../exportpdf/tests/manual/wrongendpoint.html | 21 - .../exportpdf/tests/manual/wrongendpoint.md | 34 - .../plugins/exportpdf/tests/notification.js | 4 - .../plugins/exportpdf/tests/resourcespaths.js | 9 - .../plugins/exportpdf/tests/statistics.js | 3 - .../plugins/exportpdf/tests/stylesheets.js | 18 - .../ckeditor/ckeditor/plugins/wsc/LICENSE.md | 28 - .../ckeditor/ckeditor/plugins/wsc/README.md | 80 -- .../ckeditor/plugins/wsc/dialogs/ciframe.html | 66 -- .../plugins/wsc/dialogs/tmpFrameset.html | 52 -- .../ckeditor/plugins/wsc/dialogs/wsc.css | 82 -- .../ckeditor/plugins/wsc/dialogs/wsc.js | 91 --- .../ckeditor/plugins/wsc/dialogs/wsc_ie.js | 11 - .../plugins/wsc/skins/moono-lisa/wsc.css | 43 - htdocs/includes/geoPHP/doc/api.html | 734 ------------------ 50 files changed, 2394 deletions(-) delete mode 100644 htdocs/includes/ace/editor.html delete mode 100644 htdocs/includes/ace/kitchen-sink.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/CHANGELOG.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/LICENSE.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/README.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/plugindefinition.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/_helpers/tools.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/authentication.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/exportpdf.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/notification.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/resourcespaths.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/statistics.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/stylesheets.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/LICENSE.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/README.md delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/ciframe.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/tmpFrameset.html delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.css delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc_ie.js delete mode 100644 htdocs/includes/ckeditor/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css delete mode 100644 htdocs/includes/geoPHP/doc/api.html diff --git a/htdocs/includes/ace/editor.html b/htdocs/includes/ace/editor.html deleted file mode 100644 index 7be6b4d79e4..00000000000 --- a/htdocs/includes/ace/editor.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Editor - - - - -
function foo(items) {
-    var i;
-    for (i = 0; i < items.length; i++) {
-        alert("Ace Rocks " + items[i]);
-    }
-}
- - - - - - diff --git a/htdocs/includes/ace/kitchen-sink.html b/htdocs/includes/ace/kitchen-sink.html deleted file mode 100644 index 026b357ca4a..00000000000 --- a/htdocs/includes/ace/kitchen-sink.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - Ace Kitchen Sink - - - - - - - - - - - -
-
-
-
- - - -
-
- - - - - - -
-
-
-
- - - - - - - - - - - - - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/CHANGELOG.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/CHANGELOG.md deleted file mode 100644 index a2927d621d9..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/CHANGELOG.md +++ /dev/null @@ -1,72 +0,0 @@ -# CKEditor 4 Export to PDF Plugin Changelog - -## ckeditor4-plugin-exportpdf 1.0.6 - -Other Changes: - -* Updated changelog. - -## ckeditor4-plugin-exportpdf 1.0.5 - -Other Changes: - -* Updated year and company name in license headers. - -## ckeditor4-plugin-exportpdf 1.0.4 - -Other Changes: - -* Updated test files. - -## ckeditor4-plugin-exportpdf 1.0.3 - -Other Changes: - -* Updated test files. - -## ckeditor4-plugin-exportpdf 1.0.2 - -Other Changes: - -* Updated year in license headers. - -## ckeditor4-plugin-exportpdf 1.0.1 - -Other Changes: - -* Improved external CSS support for [Classic Editor](https://ckeditor.com/docs/ckeditor4/latest/examples/classic.html) by handling exceptions and displaying convenient [error messages](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#exportpdf-stylesheets-incaccessible). - -## ckeditor4-plugin-exportpdf 1.0.0 - -The first stable release of the CKEditor 4 WYSIWYG Editor Export to PDF plugin. After a few months of the beta phase, testing and listening to community feedback, the CKEditor 4 Export to PDF plugin is stable and can be used with full confidence. Enjoy! - -New Features: - -* Introduced access control mechanism. The plugin now can be configured with additional [exportPdf_tokenUrl](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-exportPdf_tokenUrl) option to allow commercial use. - -## ckeditor4-plugin-exportpdf 0.1.2 - -Other Changes: - -* Improved [plugin API documentation](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-exportPdf_fileName). -* Updated Export to PDF plugin npm readme to link to the [official plugin documentation](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html). - -## ckeditor4-plugin-exportpdf 0.1.1 - -Other Changes: - -* Renamed the Export to PDF plugin button from `exportPdf` to `ExportPdf`. The `ExportPdf` name should now be used while setting up a custom toolbar with the [CKEDITOR.config.toolbar](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-toolbar) configuration option. - -## ckeditor4-plugin-exportpdf 0.1.0 - -The first beta release of the CKEditor 4 Export to PDF plugin. - -This plugin allows you to easily print your WYSIWYG editor content to a PDF file. When enabled, this feature sends the content of your editor together with the styles that are used to display it to the CKEditor Cloud Services HTML to PDF converter service. The service then generates a PDF document that can be downloaded by the user. - -Available features: - -* Exporting HTML content from CKEditor 4 WYSIWYG editor to PDF with a single click. -* Setting a custom name for the generated PDF file. -* Handling relative image paths. -* Changing the appearance of the PDF document (like margins, text styling, custom headers and footers etc.) with custom CSS styles. -* Pre-processing HTML content via synchronous and asynchronous code before the generation of the PDF file. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/LICENSE.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/LICENSE.md deleted file mode 100644 index 5ba07866c46..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/LICENSE.md +++ /dev/null @@ -1,18 +0,0 @@ -Software License Agreement -========================== - -**CKEditor 4 Export to PDF plugin** (https://ckeditor.com/ckeditor-4/)
-Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved. - -CKEditor 4 Export to PDF plugin is licensed under a commercial license and is protected by copyright law. -For more details about available licensing options please contact us at sales@cksource.com. - -Sources of Intellectual Property Included in CKEditor 4 export to PDF ---------------------------------------------------------------------- - -Where not otherwise indicated, all CKEditor 4 Export to PDF plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. - -Trademarks ----------- - -**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/README.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/README.md deleted file mode 100644 index 8ab77a109da..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/README.md +++ /dev/null @@ -1,102 +0,0 @@ -# CKEditor 4 Export to PDF Plugin - -The **Export to PDF** CKEditor 4 plugin allows you to easily print the WYSIWYG editor content to a PDF file. When enabled, this feature sends the content of your editor together with the styles that are used to display it to the CKEditor Cloud Services HTML to PDF converter service. The service then generates a PDF document that can be downloaded by the user. - -Thanks to this plugin, it takes exactly one button click to get a PDF file with content formatted in the same way as the one visible in CKEditor 4. - -CKEditor 4 **Export to PDF** also allows various customizations like changing the page size and margin, setting additional styling, adding custom headers and footers and pre-processing content. This gives great flexibility and control over the PDF output and allows to keep all the PDF documents consistent when it comes to styling. - -This is a premium feature. Please [contact us](https://ckeditor.com/contact/) if you would like to purchase a license. Let us know if you have any feedback or questions! You can also sign up for the [CKEditor Premium Features 30-day Free Trial](https://orders.ckeditor.com/trial/premium-features). - -If this feature is used without authorization, the resulting documents will be watermarked. - -![](https://c.cksource.com/a/1/img/npm/ckeditor4-pdf-export.gif) - -## Getting Started - -### Using with official CKEditor 4 presets - -Starting with CKEditor 4 version `4.15.0`, **Export to PDF** plugin is included in `standard-all`, `full` and `full-all` official presets. The `full` and `full-all` presets have the plugin active by default while for `standard-all` it needs to be enabled with the [`config.extraPlugins`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins) configuration option: - -```js -CKEDITOR.replace( 'editor', { - extraPlugins: 'exportpdf' -} ); -``` - -### Installation from npm - -To instal the plugin via npm, simply run: - -```bash -npm i ckeditor4-plugin-exportpdf -``` - -Then add the plugin to your CKEditor 4 instance with the [`addExternal()` method](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_plugins.html#method-addExternal): - -```js -CKEDITOR.plugins.addExternal( 'exportpdf', './node_modules/ckeditor4-plugin-exportpdf/' ); -``` - -If you prefer not to link to the `node_modules` folder directly, you may simply copy the entire `./node_modules/ckeditor4-plugin-exportpdf/` directory as `ckeditor/plugins/exportpdf/` and add it with the [`config.extraPlugins`](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins) configuration option: - -```js -CKEDITOR.replace( 'editor', { - extraPlugins: 'exportpdf' -} ); -``` - -### Other Installation Methods - -You can also use the [CKEditor 4 Add-ons repository](https://ckeditor.com/cke4/addons/plugins/all) to obtain the plugin via: - -* [Custom build with online builder](https://ckeditor.com/cke4/builder) -* [Manual download](https://ckeditor.com/cke4/addon/exportpdf) - -Refer to [Export to PDF installation documentation](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#installation) for more details. If you are having trouble setting up the Export to PDF plugin, please [contact us](https://ckeditor.com/contact/). - -### Setting up a license key - -If you have a commercial license for **Export to PDF** plugin, [exportPdf_tokenUrl](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-exportPdf_tokenUrl) configuration option should be set to remove watermark from generated documents: - -```js -CKEDITOR.replace( 'editor', { - exportPdf_tokenUrl: 'https://example.com/cs-token-endpoint' -} ); -``` - -This value is unique for each customer and can be found in the [CKEditor Ecosystem dashboard](https://dashboard.ckeditor.com). - -This is all. If you are having trouble in setting up Export to PDF plugin, please [contact us](https://ckeditor.com/contact/). - -## Features - -The CKEditor 4 Export to PDF plugin is really simple to use and works out-of-the-box. It does not require any additional configuration and due to its flexible nature, it covers a lot of cases internally while also providing an easy way to [customize output PDF files](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#configuration). - -The most important features are: - -* Exporting HTML content from CKEditor 4 WYSIWYG editor to PDF with a single click. -* [Setting a custom name](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#setting-dynamic-file-name) for the generated PDF file. -* [Handling relative image paths](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#relative-vs-absolute-urls). -* [Changing the appearance of the PDF document](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#custom-css-rules) (like margins, text styling, custom headers and footers etc.) with custom CSS styles. -* [Pre-processing HTML content](https://ckeditor.com/docs/ckeditor4/latest/features/exporttopdf.html#data-preprocessing) via synchronous and asynchronous code before the generation of the PDF file. - -## Browser and CKEditor 4 Support - -The CKEditor 4 Export to PDF plugin works in all the browsers [supported by CKEditor 4](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_browsers.html) except for Internet Explorer versions older than version 11. The plugin is compatible with CKEditor 4 versions starting from `4.6.1`. - -## Demo - -See the working ["Exporting editor content to PDF"](https://ckeditor.com/docs/ckeditor4/latest/examples/exporttopdf.html) sample that showcases printing your HTML content to a PDF file. - -## License - -**CKEditor 4 Export to PDF plugin** (https://ckeditor.com/ckeditor-4/)
-Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved. - -CKEditor 4 export to PDF plugin is licensed under a commercial license and is protected by copyright law. -For more details about available licensing options please contact us at sales@cksource.com. - -### Trademarks - -**CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/plugindefinition.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/plugindefinition.js deleted file mode 100644 index 5f282702bb0..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/plugindefinition.js +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/_helpers/tools.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/_helpers/tools.js deleted file mode 100644 index aed0cc9b0c1..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/_helpers/tools.js +++ /dev/null @@ -1,5 +0,0 @@ -/* - Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. - For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license -*/ -(function(){window.exportPdfUtils={useXHR:function(b,a){var c=sinon.useFakeXMLHttpRequest(),d;c.onCreate=function(a){d=a};b.execCommand("exportPdf");a&&a(d);c.restore()},getDefaultConfig:function(b,a){return CKEDITOR.tools.object.merge({extraPlugins:"exportpdf",exportPdf_appId:"cke4-tests-"+b},a)},initManualTest:function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");bender.tools.ignoreUnsupportedEnvironment("exportpdf")},toAbsoluteUrl:function(b,a){return(a?a:window.location.origin)+b}}})(); \ No newline at end of file diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/authentication.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/authentication.js deleted file mode 100644 index 1d6f9feb7bf..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/authentication.js +++ /dev/null @@ -1,6 +0,0 @@ -(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){function d(a,c){var b=exportPdfUtils.getDefaultConfig("unit",a||{});bender.editorBot.create({name:"editor"+Date.now(),config:b,startupData:"\x3cp\x3eHello World!\x3c/p\x3e"},function(a){c&&c(a.editor)})}var b=function(){var a=sinon.fakeServer.create(),c=0;a.respondWith(function(a){"/incremental_token"===a.url?(a.respond(200,{},"sample-token-value"+c),c+=1):"/empty-token"===a.url?a.respond(200, -{},""):a.respond(200,{},"sample-token-value")});return a}(),e;bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf");e=sinon.stub(CKEDITOR.plugins.exportpdf,"downloadFile")},tearDown:function(){e.restore()},"test token is fetched if tokenUrl is correct":function(){d({exportPdf_tokenUrl:"/custom-url"},function(a){a.on("exportPdf",function(a){assert.areEqual(a.data.token,"sample-token-value","Token value is incorrect.")},null,null,17);b.respond();a.execCommand("exportPdf"); -b.respond()})},"test authentication header is added if token is provided":function(){d({exportPdf_tokenUrl:"/custom-url"},function(a){b.respond();a.execCommand("exportPdf");b.respond();assert.areEqual("sample-token-value",b.requests[b.requests.length-1].requestHeaders.Authorization,"Authorization token was not set properly.")})},"test console.warn is called if tokenUrl is not provided":function(){CKEDITOR.once("log",function(a){a.cancel();assert.areEqual("exportpdf-no-token-url",a.data.errorCode, -"There should be URL error log.")});d({exportPdf_tokenUrl:""})},"test console.warn is called on POST request if token is empty":function(){var a=CKEDITOR.on("log",function(c){"exportpdf-no-token"===c.data.errorCode&&(c.cancel(),CKEDITOR.removeListener("log",a),assert.areEqual("exportpdf-no-token",c.data.errorCode,"`exportpdf-no-token` should occur."))});d({exportPdf_tokenUrl:"/empty-token"},function(a){b.respond();a.execCommand("exportPdf");b.respond()})},"test console.warn is called on POST request if token was not fetched at all":function(){var a= -CKEDITOR.on("log",function(c){"exportpdf-no-token"===c.data.errorCode&&(c.cancel(),CKEDITOR.removeListener("log",a),assert.areEqual("exportpdf-no-token",c.data.errorCode,"`exportpdf-no-token` should occur."))});d({exportPdf_tokenUrl:"/custom-url"},function(a){a.execCommand("exportPdf");b.respond()})},"test token refreshes in the declared intervals":function(){CKEDITOR.once("instanceCreated",function(a){a.editor.exportPdfTokenInterval=200});d({exportPdf_tokenUrl:"/incremental_token"},function(a){b.respond(); -setTimeout(function(){resume(function(){b.respond();a.on("exportPdf",function(a){assert.areNotSame(a.data.token,"sample-token-value0","Token was not refreshed.")},null,null,17);a.execCommand("exportPdf");b.respond()})},500);wait()})},"test file is downloaded also without token":function(){d({exportPdf_tokenUrl:"/empty-token"},function(a){b.respond();a.execCommand("exportPdf");b.respond();sinon.assert.calledOnce(e);assert.pass()})}})})})(); \ No newline at end of file diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/exportpdf.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/exportpdf.js deleted file mode 100644 index 8fbc4cfdbbc..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/exportpdf.js +++ /dev/null @@ -1,10 +0,0 @@ -(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf")},"test data is correct at read and send stages":function(){bender.editorBot.create({name:"editor1",config:exportPdfUtils.getDefaultConfig("unit")},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');b.once("exportPdf",function(a){assert.areEqual(a.data.html, -b.getData(),"Data from editor is incorrect.");assert.isTrue(CKEDITOR.tools.isEmpty(a.data.options),"`options` object should be initially empty.")});b.once("exportPdf",function(a){a.cancel();assert.areEqual('\x3cdiv class\x3d"cke_editable cke_contents_ltr"\x3e'+b.getData()+"\x3c/div\x3e",a.data.html,"Preprocessed data sent to endpoint is incorrect.");assert.isNotNull(a.data.css,"CSS should be attached.")},null,null,16);b.execCommand("exportPdf")})},"test options provided via config":function(){bender.editorBot.create({name:"editor2", -config:exportPdfUtils.getDefaultConfig("unit",{exportPdf_options:{format:"A6"}})},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');b.once("exportPdf",function(a){a.cancel();assert.areEqual(a.data.options.format,"A6")});b.execCommand("exportPdf")})},"test html changed via event":function(){bender.editorBot.create({name:"editor3",config:exportPdfUtils.getDefaultConfig("unit")},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^'); -b.once("exportPdf",function(a){a.cancel();assert.areEqual(a.data.html,"")});b.once("exportPdf",function(a){assert.areNotEqual(a.data.html,"");a.data.html=""},null,null,1);b.execCommand("exportPdf")})},"test options changed via event":function(){bender.editorBot.create({name:"editor4",config:exportPdfUtils.getDefaultConfig("unit")},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');b.once("exportPdf",function(a){a.cancel();assert.areEqual(a.data.options.format, -"A5")});b.once("exportPdf",function(a){a.data.options.format="A5"},null,null,1);b.execCommand("exportPdf")})},"test html changed via event asynchronously":function(){bender.editorBot.create({name:"editor5",config:exportPdfUtils.getDefaultConfig("unit")},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');b.on("exportPdf",function(a){a.cancel();a.data.asyncDone&&(resume(),assert.areEqual(a.data.html,"\x3cp\x3eContent filtered!\x3c/p\x3e"),delete a.data.asyncDone, -assert.isUndefined(a.data.asyncDone))});b.on("exportPdf",function(a){a.data.asyncDone||setTimeout(function(){a.data.html="\x3cp\x3eContent filtered!\x3c/p\x3e";a.data.asyncDone=!0;b.fire("exportPdf",a.data)},1E3)},null,null,1);b.execCommand("exportPdf");wait()})},"test options changed via event asynchronously":function(){bender.editorBot.create({name:"editor6",config:exportPdfUtils.getDefaultConfig("unit",{exportPdf_options:{format:"A5"}})},function(c){var b=c.editor;c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^'); -b.on("exportPdf",function(a){a.cancel();a.data.asyncDone&&(resume(),assert.areEqual(a.data.options.format,"A4"),delete a.data.asyncDone,assert.isUndefined(a.data.asyncDone))});b.on("exportPdf",function(a){a.data.asyncDone||setTimeout(function(){a.data.options.format="A4";a.data.asyncDone=!0;b.fire("exportPdf",a.data)},1E3)},null,null,1);b.execCommand("exportPdf");wait()})},"test default CKEditor config":function(){bender.editorBot.create({name:"editor7",config:exportPdfUtils.getDefaultConfig("unit")}, -function(c){CKEDITOR.config.exportPdf_isDev?assert.areEqual(c.editor.config.exportPdf_service,"https://pdf-converter.cke-cs-staging.com/v1/convert","Default dev endpoint is incorrect."):assert.areEqual(c.editor.config.exportPdf_service,"https://pdf-converter.cke-cs.com/v1/convert","Default prod endpoint is incorrect.");assert.areEqual(c.editor.config.exportPdf_fileName,"ckeditor4-export-pdf.pdf","Default file name is incorrect.")})},"test inaccessible stylesheets are handled correctly":function(){bender.editorBot.create({name:"editor8", -config:exportPdfUtils.getDefaultConfig("unit",{contentsCss:"https://cdn.ckeditor.com/4.16.0/full-all/samples/css/samples.css"})},function(c){var b=c.editor,a=!1,d=CKEDITOR.on("log",function(b){"exportpdf-stylesheets-inaccessible"===b.data.errorCode&&(b.cancel(),CKEDITOR.removeListener("log",d),a=!0)});c.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');b.once("exportPdf",function(b){b.cancel();resume(function(){a?assert.pass():assert.fail("No errors thrown while accessing stylesheets rules.")})}, -null,null,19);CKEDITOR.tools.setTimeout(function(){b.execCommand("exportPdf")},1E3);wait()})}})})})(); \ No newline at end of file diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.html deleted file mode 100644 index b9393352669..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.html +++ /dev/null @@ -1,27 +0,0 @@ -
-

My filename should be 'ckeditor4-export-pdf.pdf'.

-
- -
-

And mine - 'different-name.pdf'.

-
- -
-

Beautiful title

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.md deleted file mode 100644 index 3e4b53c9dfd..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/configfilename.md +++ /dev/null @@ -1,46 +0,0 @@ -@bender-tags: exportpdf, feature, 1 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format - -1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor. -1. Wait for the file to download. - - **Expected:** - - File with `ckeditor4-export-pdf.pdf` name (possibly with number if file already existed) was downloaded. - - **Unexpected:** - - File was not downloaded or its name is incorrect. - -1. Do the same in the second editor. - - **Expected:** - - File with `different-name.pdf` name (possibly with number if file already existed) was downloaded. - - **Unexpected:** - - File was not downloaded or its name is incorrect. - -1. Repeat for the third editor. - - **Expected:** - - File with 'Beautiful title.pdf' name (possibly with number if file already existed) was downloaded. - - **Unexpected:** - - File was not downloaded or its name is incorrect. - -1. Change text in the third editor to `New title` (**important:** it has to remain a `

` element). -1. Click and download PDF again. - - **Expected:** - - Name of a new file is 'New title.pdf'. - - **Unexpected:** - - Name is the same as before or there is an error. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.html deleted file mode 100644 index 05ceb5d3045..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.html +++ /dev/null @@ -1,18 +0,0 @@ -
-
- -
-

My content and wrapper will be deleted.

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.md deleted file mode 100644 index dcf5ba8419f..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/emptyeditor.md +++ /dev/null @@ -1,34 +0,0 @@ -@bender-tags: exportpdf, feature, 11 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification - -**Note:** At the beginning open the console. - -1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor. -1. Wait for the file to download. -1. Open the file. - - **Expected:** - - * Empty file was downloaded. - * No errors in console. - - **Unexpected:** - - * File wasn't downloaded. - * File was downloaded but can't be opened. - * Error in the console appeared. - -1. Click `Export to PDF` button in the second editor. - - **Expected:** - - * File wasn't downloaded. - * The notification with error appeared in the editor. - * There is an error message in the console. - - **Unexpected:** - - * File was downloaded and can't be opened. - * Success notification was displayed. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.html deleted file mode 100644 index 2f0e333d3e2..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.html +++ /dev/null @@ -1,148 +0,0 @@ -
-

Bilancino Hotel logoThe Flavorful Tuscany Meetup

- -

Welcome letter

- -

Dear Guest,

- -

We are delighted to welcome you to the annual Flavorful Tuscany Meetup and hope you will enjoy the programme as well as your stay at the Bilancino Hotel.

- -

Please find attached the full schedule of the event.

- -
-

The annual Flavorful Tuscany meetups are always a culinary discovery. You get the best of Tuscan flavors during an intense one-day stay at one of the top hotels of the region. All the sessions are lead by top chefs passionate about their profession. I would certainly recommend to save the date in your calendar for this one!

- -

Angelina Calvino, food journalist

-
- -

Please arrive at the Bilancino Hotel reception desk at least half an hour earlier to make sure that the registration process goes as smoothly as possible.

- -

We look forward to welcoming you to the event.

- -

Victoria Valc signature

- -

Victoria Valc

- -

Event Manager
- Bilancino Hotel

- -

 

- -
 
- -

 

- -

The Flavorful Tuscany Meetup Schedule

- - - - - - - - - - - - - - - - - - - - - -
Saturday, July 14
9:30 AM - 11:30 AM -

Americano vs. Brewed - “know your coffee” with: 

- -
    -
  • Giulia Bianchi
  • -
  • Stefano Garau
  • -
  • Giuseppe Russo
  • -
-
1:00 PM - 3:00 PM -

Pappardelle al pomodoro - live cooking 1

- -

Incorporate the freshest ingredients 
- with Rita Fresco

-
5:00 PM - 8:00 PM -

Tuscan vineyards at a glance - wine-tasting 
- with Frederico Riscoli

-
- -

 

- -

1 Registration for the live cooking session is required as seats are limited.

- -

 

- -
- -

Driving directions from the airport

- -
    -
  1. Head southeast on R138 toward Nassau St.
  2. -
  3. Follow R138 and R148 to Bridgefoot St/R804. -
      -
    1. Use the left 2 lanes to turn slightly left onto Lincoln Pl/R138.
    2. -
    3. Turn left onto Westland Row/R118/R138.
    4. -
    5. Use any lane to turn left onto Pearse St/R118/R138/R802.
    6. -
    7. Continue to follow R138/R802.
    8. -
    -
  4. -
  5. Turn left onto Burgh Quay/George's Quay/R105/R138.
  6. -
  7. Continue onto Aston Quay/R148. -
      -
    • Continue to follow R148.
    • -
    -
  8. -
  9. Turn left onto Bridgefoot St/R804. -
      -
    • Continue to follow R804.
    • -
    -
  10. -
  11. After approximately 2 minutes, Bilancino Hotel will be on your left.
  12. -
- -

 

-
- -
- - -

Document preview (based on send HTML and CSS)

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.md deleted file mode 100644 index 162cf5a7423..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integration.md +++ /dev/null @@ -1,12 +0,0 @@ -@bender-tags: exportpdf, feature, 17 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: basicstyles, bidi, blockquote, clipboard, colorbutton, colordialog, dialogadvtab, elementspath, enterkey, font, format, horizontalrule, htmlwriter, image, indentlist, indentblock, justify, link, list, liststyle, magicline, pagebreak, pastefromgdocs, pastefromlibreoffice, pastefromword, pastetext, specialchar, stylescombo, table, tableselection, tabletools, toolbar, undo, wysiwygarea, sourcearea, resize - -1. Click `Export to PDF` button (the one next to the `Source` button). - -1. Wait for the PDF to download and examine it. - -If you find any bugs, please report them here. Just remember to check if it isn't already known. - -When comparing generated PDF to editor contents the best conversion results (close to 1:1 document formatting) can be observed in a Chrome browser. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html deleted file mode 100644 index 8edc706d777..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.html +++ /dev/null @@ -1,27 +0,0 @@ -
-

Foo bar

-
- -
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md deleted file mode 100644 index 58155de4dc0..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/integrations/easyimage.md +++ /dev/null @@ -1,26 +0,0 @@ -@bender-tags: exportpdf, feature, 77 -@bender-ui: collapsed -@bender-include: ../../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format, easyimage - -Note: You need the Internet connection to run this test. - -1. Click `Export to PDF` toolbar button. -1. Examine the area in the red frame below. - - **Expected:** There is a long token string in the frame. - - **Unexpected:** Frame is empty or says 'undefined'. - -1. Wait for the file to download and examine it. - - **Expected:** No information about being created with CKEditor was added. - - **Unexpected:** There is an additional note about CKEditor at the bottom of page. - -1. Upload an image. -1. Examine browser console. - - **Expected:** There are no errors or warnings. - - **Unexpected:** Any error or warning concerning `Export to PDF` or `Easy Image` occurred. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.html deleted file mode 100644 index 0b638d0fac8..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.html +++ /dev/null @@ -1,19 +0,0 @@ -
-

Hello world!

-
- -
-

Hello world!

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.md deleted file mode 100644 index c3dde9a2b1a..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notifications.md +++ /dev/null @@ -1,36 +0,0 @@ -@bender-tags: exportpdf, feature, 4 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, notification - -1. Read the expected results first as there will be a sequence of things happening quickly to examine. -1. Click `Export to PDF` button in the first editor. - - **Expected:** - - * Button is disabled after click. - * Nofitication bar of `info` type appeared. - * When download started, notification type changed to `success`. - * Once download finished, button is enabled again. - * After 3 seconds notification bar disappeared. - - **Unexpected:** - - * Button wasn't disabled. - * Button wasn't enabled after download started. - * Notifications were incorrect. - * Notification bar didn't disappear. - -1. Click `Export to PDF` button in the second editor. - - **Expected:** - - * Neither notifications nor alerts appeared. - * File was downloaded. - * Button was disabled for the time between click and download. - - **Unexpected:** - - * Notification or browser alert appeared. - * File wasn't downloaded. - * Button wasn't disabled for the time between click and download. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html deleted file mode 100644 index 3e3d23ee2c5..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.html +++ /dev/null @@ -1,45 +0,0 @@ -
-

Export to PDF test 1.

-
- -
-

Export to PDF test 2.

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.md deleted file mode 100644 index 02e30abf0d6..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/notificationsasync.md +++ /dev/null @@ -1,27 +0,0 @@ -@bender-tags: exportpdf, feature, 4 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification - -1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor. -1. Watch appearing notifications. - - **Expected:** - - * Notification `Processing PDF document...` was visible for about 2 seconds. - * Progress steps were: `0`, `0.5`, `success`. - - **Unexpected:** - - Notification disappeared too fast to be noticable. - -1. Do the same in the second editor. - - **Expected:** - - * Notification `Processing PDF document...` was visible for about 2 seconds. - * Progress steps were: `0.2`, `0.5`, `success`. - - **Unexpected:** - - Notification disappeared too fast to be noticable. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.html deleted file mode 100644 index a888bb76ab8..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.html +++ /dev/null @@ -1,29 +0,0 @@ -
-

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, - sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, - quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute - irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. - Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." -

-
- -
-

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, - sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, - quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute - irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. - Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." -

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.md deleted file mode 100644 index 19600105690..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/paperformat.md +++ /dev/null @@ -1,18 +0,0 @@ -@bender-tags: exportpdf, bug, 24 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification - -1. Click `Export to PDF` button (the one next to the `Source` button) in the first editor. -1. Wait for the file to download. -1. Do the same in the second editor. -1. Compare paper format in files. - - **Expected:** - - * First editor produced file in `A4` format (`8.27in x 11.7in`); - * Second editor produced file in `A6` format (`4.13in x 5.83in`). - - **Unexpected:** - - Any file is in different format than intended (e.g. `Letter` - `8.5in x 11in`). diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.html deleted file mode 100644 index 61864052340..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.html +++ /dev/null @@ -1,18 +0,0 @@ - -
-

This editor is read-only.

-
- - - - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.md deleted file mode 100644 index b7317bfb77d..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/readonly.md +++ /dev/null @@ -1,28 +0,0 @@ -@bender-tags: exportpdf, feature, 1 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification - -1. Examine `Export to PDF` button (the one next to the `Source` button). - - **Expected:** - - Button is clickable. - - **Unexpected:** - - Button is inactive. - -1. Click the button. -1. Wait for the file to download. - - **Expected:** - - File with correct content was downloaded. - - **Unexpected:** - - File was not downloaded or its content is incorrect. - -1. Click `Toggle read-only mode` button. -1. Repeat steps 1-3. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.html deleted file mode 100644 index c71d1023668..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.html +++ /dev/null @@ -1,36 +0,0 @@ -

Classic Editor

- - -

Divarea Editor

-
- Divarea Editor -
- -

Inline Editor

-
- Inline Editor -
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.md deleted file mode 100644 index 96a3d8725e7..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/stylesheets.md +++ /dev/null @@ -1,19 +0,0 @@ -@bender-tags: exportpdf, feature, 31 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: toolbar, basicstyles, notification - -**Note:** This test uses Bootstrap CDN. If something goes wrong, check if the link works correctly first. - -1. Use `Export to PDF` button in the first editor. -1. Open generated file. - - **Expected:** - - Text from editor was converted to a green badge. - - **Unexpected:** - - Content is the same as in the editor. - -1. Repeat the same steps for the second and third editor. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.html deleted file mode 100644 index 60d8205cb13..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.html +++ /dev/null @@ -1,23 +0,0 @@ -
-

Foo bar

-
- -
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.md deleted file mode 100644 index de9ba3587c2..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenfetching.md +++ /dev/null @@ -1,19 +0,0 @@ -@bender-tags: exportpdf, feature, 77 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format - -Note: You need the Internet connection to run this test. - -1. Click `Export to PDF` toolbar button. -1. Examine the area in the red frame below. - - **Expected:** There is a long token string in the frame. - - **Unexpected:** Frame is empty or says 'undefined'. - -1. Wait for the file to download and open it. - - **Expected:** No information about being created with CKEditor was added. - - **Unexpected:** There is an additional note about CKEditor at the bottom of page. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html deleted file mode 100644 index 183c3df0c57..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.html +++ /dev/null @@ -1,38 +0,0 @@ -

Editor 1

-
-

Foo bar

-
-
- -

Editor 2

-
-

Foo bar

-
-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md deleted file mode 100644 index 3f6b9bfe548..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorscorrect.md +++ /dev/null @@ -1,14 +0,0 @@ -@bender-tags: exportpdf, feature, 77 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format - -Note: You need the Internet connection to run this test. - -1. Click `Export to PDF` button in both editors. - -1. Examine the area in the red frames below each editor. - - **Expected:** Content of two boxes are two different long strings. - - **Unexpected:** Values in both boxes are the same or one of them says `undefined`. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html deleted file mode 100644 index f3efc6c03a4..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.html +++ /dev/null @@ -1,38 +0,0 @@ -

Editor 1

-
-

Foo bar

-
-
- -

Editor 2

-
-

Foo bar

-
-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md deleted file mode 100644 index a718c443f2a..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokentwoeditorswrong.md +++ /dev/null @@ -1,14 +0,0 @@ -@bender-tags: exportpdf, feature, 77 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format - -Note: You need the Internet connection to run this test. - -1. Click `Export to PDF` button in both editors. - -1. Examine the area in the red frames below each editor. - - **Expected:** First box contains token value and the second one `undefined`. - - **Unexpected:** Values in both boxes are the same or none of them is `undefined`. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.html deleted file mode 100644 index a7236ab7a59..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.html +++ /dev/null @@ -1,19 +0,0 @@ -
-

Foo bar

-
- -
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.md deleted file mode 100644 index 2de03aaee32..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/tokenwithouturl.md +++ /dev/null @@ -1,31 +0,0 @@ -@bender-tags: exportpdf, feature, 77 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, basicstyles, notification, format - -Note: You need the Internet connection to run this test. - -1. Open and examine console. - - **Expected:** `exportpdf-no-token-url` warning appeared. - - **Unexpected:** No warning. - -1. Click `Export to PDF` button in the editor. -1. Examine the area in the red frame below. - - **Expected:** Frame has text `undefined`. - - **Unexpected:** There is a long token string in the frame. - -1. Examine console. - - **Expected:** `exportpdf-no-token` warning appeared. - - **Unexpected:** No warning. - -1. Wait for the file to download and open it. - - **Expected:** File contains info about being created with CKEditor. - - **Unexpected:** No copyright info was added. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.html b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.html deleted file mode 100644 index efd801dbc71..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.html +++ /dev/null @@ -1,21 +0,0 @@ -
-

Hello world!

-
- -
-

Hello world!

-
- - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.md b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.md deleted file mode 100644 index 7231719ad77..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/manual/wrongendpoint.md +++ /dev/null @@ -1,34 +0,0 @@ -@bender-tags: exportpdf, feature, 4 -@bender-ui: collapsed -@bender-include: ../_helpers/tools.js -@bender-ckeditor-plugins: wysiwygarea, toolbar, notification - -**Note:** Errors in console during this test are allowed. - -1. Click `Export to PDF` button in the first editor. - - **Expected:** - - * Warning notification with `Error occured.` message appeared. - * Button is clickable. - * File wasn't downloaded. - - **Unexpected:** - - * Notification didn't show up. - * Button wasn't reenabled. - * File was downloaded. - -2. Click `Export to PDF` button in the second editor. - - **Expected:** - - * Alert appeared instead of notification. - * Button is clickable. - * File wasn't downloaded. - - **Unexpected:** - - * Notification didn't show up. - * Button wasn't reenabled. - * File was downloaded. diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/notification.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/notification.js deleted file mode 100644 index ebd706d9ede..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/notification.js +++ /dev/null @@ -1,4 +0,0 @@ -(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){function c(a,b){var c=a._.notificationArea.notifications[0];assert.areSame(b.message,c.message,"Message should be the same.");assert.areSame(b.type,c.type,"Type should be the same.");assert.areSame(b.progress,c.progress,"Progress should be the same.")}bender.editors={successEditor:{config:exportPdfUtils.getDefaultConfig("unit")},errorEditor:{config:exportPdfUtils.getDefaultConfig("unit")}}; -bender.test({setUp:function(){bender.tools.ignoreUnsupportedEnvironment("exportpdf");sinon.stub(CKEDITOR.plugins.exportpdf,"downloadFile")},tearDown:function(){CKEDITOR.plugins.exportpdf.downloadFile.restore()},"test notifications and progress steps are correct in happy path":function(){var a=this.editors.successEditor;this.editorBots.successEditor.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');a.once("exportPdf",function(){c(a,{message:"Processing PDF document...",type:"progress", -progress:0})});a.once("exportPdf",function(){c(a,{message:"Processing PDF document...",type:"progress",progress:.2})},null,null,16);exportPdfUtils.useXHR(a,function(b){b.addEventListener("progress",function(){c(a,{message:"Processing PDF document...",type:"progress",progress:.8})});b.addEventListener("loadend",function(){c(a,{message:"Document is ready!",type:"success",progress:1})});b.respond(200,{},"")})},"test notifications and progress steps are correct in sad path":function(){var a=this.editors.errorEditor; -this.editorBots.errorEditor.setHtmlWithSelection('\x3cp id\x3d"test"\x3eHello, World!\x3c/p\x3e^');exportPdfUtils.useXHR(a,function(b){var d=sinon.stub(console,"error",function(a){assert.areSame("Validation failed.",a.message,"Message from endpoint is incorrect.");d.restore()});b.addEventListener("loadend",function(){c(a,{message:"Error occurred.",type:"warning"})});b.respond(400,{},'{ "message": "Validation failed." }')})}})})})(); \ No newline at end of file diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/resourcespaths.js b/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/resourcespaths.js deleted file mode 100644 index 1964499f080..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/exportpdf/tests/resourcespaths.js +++ /dev/null @@ -1,9 +0,0 @@ -(function(){bender.loadExternalPlugin("exportpdf","/apps/plugin/");CKEDITOR.plugins.load("exportpdf",function(){function a(a,d,b){b=exportPdfUtils.getDefaultConfig("unit",b||{});bender.editorBot.create({name:"editor"+Date.now(),config:b},function(b){var c=b.editor;b.setHtmlWithSelection(a);c.once("exportPdf",function(b){assert.areEqual(a,b.data.html)},null,null,10);c.once("exportPdf",function(a){a.cancel();assert.areEqual('\x3cdiv class\x3d"cke_editable cke_contents_ltr"\x3e'+d+"\x3c/div\x3e",a.data.html)}, -null,null,16);c.execCommand("exportPdf")})}function b(a,b){a=a.replace(/\/$/g,"");b&&0 - - - - - - - -

- diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/tmpFrameset.html b/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/tmpFrameset.html deleted file mode 100644 index d5fc6bba4e6..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.css b/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.css deleted file mode 100644 index 1056b45f24b..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.css +++ /dev/null @@ -1,82 +0,0 @@ -/* -Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.html or http://ckeditor.com/license -*/ - -html, body -{ - background-color: transparent; - margin: 0px; - padding: 0px; -} - -body -{ - padding: 10px; -} - -body, td, input, select, textarea -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; -} - -.midtext -{ - padding:0px; - margin:10px; -} - -.midtext p -{ - padding:0px; - margin:10px; -} - -.Button -{ - border: #737357 1px solid; - color: #3b3b1f; - background-color: #c7c78f; -} - -.PopupTabArea -{ - color: #737357; - background-color: #e3e3c7; -} - -.PopupTitleBorder -{ - border-bottom: #d5d59d 1px solid; -} -.PopupTabEmptyArea -{ - padding-left: 10px; - border-bottom: #d5d59d 1px solid; -} - -.PopupTab, .PopupTabSelected -{ - border-right: #d5d59d 1px solid; - border-top: #d5d59d 1px solid; - border-left: #d5d59d 1px solid; - padding: 3px 5px 3px 5px; - color: #737357; -} - -.PopupTab -{ - margin-top: 1px; - border-bottom: #d5d59d 1px solid; - cursor: pointer; -} - -.PopupTabSelected -{ - font-weight: bold; - cursor: default; - padding-top: 4px; - border-bottom: #f1f1e3 1px solid; - background-color: #f1f1e3; -} diff --git a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.js b/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.js deleted file mode 100644 index 6513a9e7163..00000000000 --- a/htdocs/includes/ckeditor/ckeditor/plugins/wsc/dialogs/wsc.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.html or http://ckeditor.com/license -*/ -(function(){function A(a){return a&&a.domId&&a.getInputElement().$?a.getInputElement():a&&a.$?a:!1}function J(a){if(!a)throw"Languages-by-groups list are required for construct selectbox";var d=[],c="",e;for(e in a)for(var f in a[e]){var h=a[e][f];"en_US"==h?c=h:d.push(h)}d.sort();c&&d.unshift(c);return{getCurrentLangGroup:function(d){a:{for(var c in a)for(var e in a[c])if(e.toUpperCase()===d.toUpperCase()){d=c;break a}d=""}return d},setLangList:function(){var d={},c;for(c in a)for(var e in a[c])d[a[c][e]]= -e;return d}()}}var g=function(){var a=function(a,b,e){e=e||{};var f=e.expires;if("number"==typeof f&&f){var h=new Date;h.setTime(h.getTime()+1E3*f);f=e.expires=h}f&&f.toUTCString&&(e.expires=f.toUTCString());b=encodeURIComponent(b);a=a+"\x3d"+b;for(var k in e)b=e[k],a+="; "+k,!0!==b&&(a+="\x3d"+b);document.cookie=a};return{postMessage:{init:function(a){window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent("onmessage",a)},send:function(a){var b=Object.prototype.toString, -e=a.fn||null,f=a.id||"",h=a.target||window,k=a.message||{id:f};a.message&&"[object Object]"==b.call(a.message)&&(a.message.id?a.message.id:a.message.id=f,k=a.message);a=window.JSON.stringify(k,e);h.postMessage(a,"*")},unbindHandler:function(a){window.removeEventListener?window.removeEventListener("message",a,!1):window.detachEvent("onmessage",a)}},hash:{create:function(){},parse:function(){}},cookie:{set:a,get:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, -"\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},remove:function(d){a(d,"",{expires:-1})}},misc:{findFocusable:function(a){var b=null;a&&(b=a.find("a[href], area[href], input, select, textarea, button, *[tabindex], *[contenteditable]"));return b},isVisible:function(a){var b;(b=0===a.offsetWidth||0==a.offsetHeight)||(b="none"===(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null).display:a.currentStyle?a.currentStyle.display:a.style.display)); -return!b},hasClass:function(a,b){return!(!a.className||!a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)")))}}}}(),a=a||{};a.TextAreaNumber=null;a.load=!0;a.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"};a.dialog=null;a.optionNode=null;a.selectNode=null;a.grammerSuggest=null;a.textNode={};a.iframeMain=null;a.dataTemp="";a.div_overlay=null;a.textNodeInfo={};a.selectNode={};a.selectNodeResponce={};a.langList=null;a.langSelectbox=null;a.banner="";a.show_grammar=null;a.div_overlay_no_check= -null;a.targetFromFrame={};a.onLoadOverlay=null;a.LocalizationComing={};a.OverlayPlace=null;a.sessionid="";a.LocalizationButton={ChangeTo_button:{instance:null,text:"Change to",localizationID:"ChangeTo"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking_button:{instance:null,text:"Finish Checking", -localizationID:"FinishChecking"},Option_button:{instance:null,text:"Options",localizationID:"Options"},FinishChecking_button_block:{instance:null,text:"Finish Checking",localizationID:"FinishChecking"}};a.LocalizationLabel={ChangeTo_label:{instance:null,text:"Change to",localizationID:"ChangeTo"},Suggestions:{instance:null,text:"Suggestions"},Categories:{instance:null,text:"Categories"},Synonyms:{instance:null,text:"Synonyms"}};var K=function(b){var d,c,e;for(e in b){if(d=a.dialog.getContentElement(a.dialog._.currentTabId, -e))d=d.getElement();else if(b[e].instance)d=b[e].instance.getElement().getFirst()||b[e].instance.getElement();else continue;c=b[e].localizationID||e;d.setText(a.LocalizationComing[c])}},L=function(b){var d,c,e;for(e in b)d=a.dialog.getContentElement(a.dialog._.currentTabId,e),d||(d=b[e].instance),d.setLabel&&(c=b[e].localizationID||e,d.setLabel(a.LocalizationComing[c]+":"))},t,B;a.framesetHtml=function(b){return"\x3ciframe id\x3d"+a.iframeNumber+"_"+b+' frameborder\x3d"0" allowtransparency\x3d"1" style\x3d"width:100%;border: 1px solid #AEB3B9;overflow: auto;background:#fff; border-radius: 3px;"\x3e\x3c/iframe\x3e'}; -a.setIframe=function(b,d){var c;c=a.framesetHtml(d);var e=a.iframeNumber+"_"+d;b.getElement().setHtml(c);c=document.getElementById(e);c=c.contentWindow?c.contentWindow:c.contentDocument.document?c.contentDocument.document:c.contentDocument;c.document.open();c.document.write('\x3c!DOCTYPE html\x3e\x3chtml\x3e\x3chead\x3e\x3cmeta charset\x3d"UTF-8"\x3e\x3ctitle\x3eiframe\x3c/title\x3e\x3cstyle\x3ehtml,body{margin: 0;height: 100%;font: 13px/1.555 "Trebuchet MS", sans-serif;}a{color: #888;font-weight: bold;text-decoration: none;border-bottom: 1px solid #888;}.main-box {color:#252525;padding: 3px 5px;text-align: justify;}.main-box p{margin: 0 0 14px;}.main-box .cerr{color: #f00000;border-bottom-color: #f00000;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cdiv id\x3d"content" class\x3d"main-box"\x3e\x3c/div\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"spelltext" name\x3d"spelltext" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadsuggestfirst" name\x3d"loadsuggestfirst" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadspellsuggestall" name\x3d"loadspellsuggestall" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3ciframe src\x3d"" frameborder\x3d"0" id\x3d"loadOptionsForm" name\x3d"loadOptionsForm" style\x3d"display:none; width: 100%" \x3e\x3c/iframe\x3e\x3cscript\x3e(function(window) {var ManagerPostMessage \x3d function() {var _init \x3d function(handler) {if (document.addEventListener) {window.addEventListener("message", handler, false);} else {window.attachEvent("onmessage", handler);};};var _sendCmd \x3d function(o) {var str,type \x3d Object.prototype.toString,fn \x3d o.fn || null,id \x3d o.id || "",target \x3d o.target || window,message \x3d o.message || { "id": id };if (o.message \x26\x26 type.call(o.message) \x3d\x3d "[object Object]") {(o.message["id"]) ? o.message["id"] : o.message["id"] \x3d id;message \x3d o.message;};str \x3d JSON.stringify(message, fn);target.postMessage(str, "*");};return {init: _init,send: _sendCmd};};var manageMessageTmp \x3d new ManagerPostMessage;var appString \x3d (function(){var spell \x3d parent.CKEDITOR.config.wsc.DefaultParams.scriptPath;var serverUrl \x3d parent.CKEDITOR.config.wsc.DefaultParams.serviceHost;return serverUrl + spell;})();function loadScript(src, callback) {var scriptTag \x3d document.createElement("script");scriptTag.type \x3d "text/javascript";callback ? callback : callback \x3d function() {};if(scriptTag.readyState) {scriptTag.onreadystatechange \x3d function() {if (scriptTag.readyState \x3d\x3d "loaded" ||scriptTag.readyState \x3d\x3d "complete") {scriptTag.onreadystatechange \x3d null;setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();}};}else{scriptTag.onload \x3d function() {setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1);callback();};};scriptTag.src \x3d src;document.getElementsByTagName("head")[0].appendChild(scriptTag);};window.onload \x3d function(){loadScript(appString, function(){manageMessageTmp.send({"id": "iframeOnload","target": window.parent});});}})(this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e'); -c.document.close();a.div_overlay.setEnable()};a.setCurrentIframe=function(b){a.setIframe(a.dialog._.contents[b].Content,b)};a.setHeightBannerFrame=function(){var b=a.dialog.getContentElement("SpellTab","banner").getElement(),d=a.dialog.getContentElement("GrammTab","banner").getElement(),c=a.dialog.getContentElement("Thesaurus","banner").getElement();b.setStyle("height","90px");d.setStyle("height","90px");c.setStyle("height","90px")};a.setHeightFrame=function(){document.getElementById(a.iframeNumber+ -"_"+a.dialog._.currentTabId).style.height="240px"};a.sendData=function(b){var d=b._.currentTabId,c=b._.contents[d].Content,e,f;a.previousTab=d;a.setIframe(c,d);var h=function(h){d=b._.currentTabId;h=h||window.event;h.data.getTarget().is("a")&&d!==a.previousTab&&(a.previousTab=d,c=b._.contents[d].Content,e=a.iframeNumber+"_"+d,a.div_overlay.setEnable(),c.getElement().getChildCount()?F(a.targetFromFrame[e],a.cmd[d]):(a.setIframe(c,d),f=document.getElementById(e),a.targetFromFrame[e]=f.contentWindow))}; -b.parts.tabs.removeListener("click",h);b.parts.tabs.on("click",h)};a.buildSelectLang=function(a){var d=new CKEDITOR.dom.element("div"),c=new CKEDITOR.dom.element("select");a="wscLang"+a;d.addClass("cke_dialog_ui_input_select");d.setAttribute("role","presentation");d.setStyles({height:"auto",position:"absolute",right:"0",top:"-1px",width:"160px","white-space":"normal"});c.setAttribute("id",a);c.addClass("cke_dialog_ui_input_select");c.setStyles({width:"160px"});d.append(c);return d};a.buildOptionLang= -function(b,d){var c=document.getElementById("wscLang"+d),e=document.createDocumentFragment(),f,h,k=[];if(0===c.options.length){for(f in b)k.push([f,b[f]]);k.sort();for(var l=0;lm.width-E&&(e=m.width-E);if(gm.height-r&&(g=m.height-r);n.width=e+E;n.height=g+r;a._.fromResizeEvent=!1;a.resize(e,g);setTimeout(function(){a._.fromResizeEvent=!1;CKEDITOR.dialog.fire("resize",{dialog:a,width:e, -height:g},b)},300)}a._.moved||(r=isNaN(c)&&isNaN(d)?0:1,isNaN(c)&&(c=(m.width-n.width)/2),0>c&&(c=0),c>m.width-n.width&&(c=m.width-n.width),isNaN(d)&&(d=(m.height-n.height)/2),0>d&&(d=0),d>m.height-n.height&&(d=m.height-n.height),a.move(c,d,r))}function c(){b.wsc={};(function(a){var b={separator:"\x3c$\x3e",getDataType:function(a){return"undefined"===typeof a?"undefined":null===a?"null":Object.prototype.toString.call(a).slice(8,-1)},convertDataToString:function(a){return this.getDataType(a).toLowerCase()+ -this.separator+a},restoreDataFromString:function(a){var b=a,c;a=this.backCompatibility(a);if("string"===typeof a)switch(b=a.indexOf(this.separator),c=a.substring(0,b),b=a.substring(b+this.separator.length),c){case "boolean":b="true"===b;break;case "number":b=parseFloat(b);break;case "array":b=""===b?[]:b.split(",");break;case "null":b=null;break;case "undefined":b=void 0}return b},backCompatibility:function(a){var b=a,c;"string"===typeof a&&(c=a.indexOf(this.separator),0>c&&(b=parseFloat(a),isNaN(b)&& -("["===a[0]&&"]"===a[a.length-1]?(a=a.replace("[",""),a=a.replace("]",""),b=""===a?[]:a.split(",")):b="true"===a||"false"===a?"true"===a:a),b=this.convertDataToString(b)));return b}},c={get:function(a){return b.restoreDataFromString(window.localStorage.getItem(a))},set:function(a,c){var d=b.convertDataToString(c);window.localStorage.setItem(a,d)},del:function(a){window.localStorage.removeItem(a)},clear:function(){window.localStorage.clear()}},d={expiration:31622400,get:function(a){return b.restoreDataFromString(this.getCookie(a))}, -set:function(a,c){var d=b.convertDataToString(c);this.setCookie(a,d,{expires:this.expiration})},del:function(a){this.deleteCookie(a)},getCookie:function(a){return(a=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"\x3d([^;]*)")))?decodeURIComponent(a[1]):void 0},setCookie:function(a,b,c){c=c||{};var d=c.expires;if("number"===typeof d&&d){var e=new Date;e.setTime(e.getTime()+1E3*d);d=c.expires=e}d&&d.toUTCString&&(c.expires=d.toUTCString());b=encodeURIComponent(b); -a=a+"\x3d"+b;for(var h in c)b=c[h],a+="; "+h,!0!==b&&(a+="\x3d"+b);document.cookie=a},deleteCookie:function(a){this.setCookie(a,null,{expires:-1})},clear:function(){for(var a=document.cookie.split(";"),b=0;b .cke_dialog_ui_button:first-child -{ - margin-top: 4px; -} - -div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select > label -{ - margin-left: 0; -} - -div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select div.cke_dialog_ui_input_select -{ - width: 140px !important; -} - -div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select select.cke_dialog_ui_input_select, -div[name=Thesaurus] div.cke_dialog_ui_input_select select.cke_dialog_ui_input_select -{ - margin-top: 1px; -} - -div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select select.cke_dialog_ui_input_select:focus, -div[name=Thesaurus] div.cke_dialog_ui_input_select select.cke_dialog_ui_input_select:focus -{ - margin-top: 0; -} - -div[name=GrammTab] .cke_dialog_ui_vbox tbody > tr:first-child .cke_dialog_ui_button, -div[name=Thesaurus] .cke_dialog_ui_vbox tbody > tr:first-child .cke_dialog_ui_button -{ - margin-top: 4px !important; -} - -div[name=Thesaurus] div.cke_dialog_ui_input_select -{ - width: 180px !important; -} diff --git a/htdocs/includes/geoPHP/doc/api.html b/htdocs/includes/geoPHP/doc/api.html deleted file mode 100644 index afdaeb2da5b..00000000000 --- a/htdocs/includes/geoPHP/doc/api.html +++ /dev/null @@ -1,734 +0,0 @@ -
- -
-
-
-
- - - - -
-
Table of Contents
- -
-

- - geoPHP static class - -

- -

geoPHP provides a static class that contains useful utility functions. All methods must - be called statically.

-

- - Example - -

- -
$geometry = geoPHP::load('MULTILINESTRING((10 10,20 20,10 40))','wkt');
-
$reduced_geometry = geoPHP::geometryReduce($geometry);
- -

- - Static Methods - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
version Provides the current geoPHP version. Useful if you need to check compatablity Numeric String
load Load from an adapter format (like wkt) into a geometry. The first argument is the - data, the second one is the format of the data - ('wkt','wkb','json','kml','gpx','google_geocode'). All additional arguments are - passed along to the read method of the relevant adapte Geometry
getAdapterMap Get a list of adapters as an array keyed by the value that should be passed to - geoPHP::load Array
geometryList List all geometry types Array
geosToGeometry Given a GEOSGeometry, get a geoPHP geometry Geometry
geometryReduce Reduce a geometry, or an array of geometries, into their \'lowest\' available - common geometry. For example a GeometryCollection of only points will become a - MultiPoint, while a multi-point containing a single point will return a point. An - array of geometries can be passed and they will be compiled into a single geometry. Geometry
geosInstalled Check if the GEOS php extension is installed and working Boolean
-

- - Adapters - -

- -

Adapters are responsible for getting data in and out of geoPHP Geometries. Generally - you will use an adapter to load data into a geoPHP geometry, do various manipulations on - the geometry, then use another adapter to write it out to another (or the same) format. - You can also use adapters by themselves to simply do conversion from one format to - another (See example-format-converter for an example of this). Adapters should be instantiated - and not called statically.

-

- - Class Hierarchy - -

- -
    -
  • GeoAdapter Abtract Class
      -
    • WKT Enables reading and writing WKT (Well Known Text)
    • -
    • WKB Enables reading and writing WKB (Well Known Binary). This is very fast.
    • -
    • GeoJSON Enables reading and writing GeoJSON
    • -
    • KML Enables reading and writing KML (Google Earth)
    • -
    • GoogleGeocode Enables geocoding and reverse-geocoding via google geocoding - API
    • -
    • GPX Enables reading and writing GPX (from handheld GPS devices)
    • -
    • GeoRSS Enables reading and writing of GeoRSS
    • -
    -
  • -
-

- - Example - -

- -
$wkb_reader = new WKB();
-
$geometry = $wkb_reader->read('0101000000000000000000f03f000000000000f03f',TRUE);
-
$wkt_writer = new wkt();
-
$wkt = $wkt_writer->write($geometry);
- -

- - Methods - -

- - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
read Read in input (generally a string) and return a Geometry Geometry
write Write out the given geometry into the adapter formater String
-

- - Geometries - -

- -

Geometries form the heart of the geoPHP library. Once you have loaded your data into a - Geometry object, you have access to all the various methods detailed below for doing - conversions, transformations, and operations. While generally you would use an adapter - to get a Geometry object, they can also be built by hand. See the constructor methods in - the classes to see how to do this. GEOS-php extension needs to be installed in order to - use some of the advanced methods (detailed below).

-

- - Class Hierarchy - -

- -
    -
  • Geometry
      -
    • Point
    • -
    • Collection
        -
      • LineString
      • -
      • Polygon
      • -
      • MultiLineString
      • -
      • MultiPoint
      • -
      • MultiPolygon
      • -
      • GeometryCollection
      • -
      -
    • -
    -
  • -
-

- - Example - -

- -
$poly1 = $geoPHP::load('POLYGON((30 10,10 20,20 40,40 40,30 10))','wkt');
-
$poly2 = $geoPHP::load('POLYGON((35 10,10 20,15 40,45 45,35 10),(20 30, 35 35, 30 20, 20 30))','wkt');
-
$combined_poly = $poly1->union($poly2);
-
$kml = $combined_poly->out('kml');
- -

- - Methods - -

- -

- Common Methods -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
out Outputs the geometry into the specified adapter format. Available formats are - wkt, wkb, json, kml, gpx, google_geocode - String
area The area of this Polygon (or GeometryCollection), as measured in the spatial - reference system of the geometry Float
boundary Returns the closure of the combinatorial boundary of this geometric object. LinearRing
envelope The minimum bounding box for this Geometry, returned as a Geometry. Polygon
getBBox The minimum bounding box for this Geometry, returned as an array. Also see - envelope() Array
centroid The mathematical centroid for this geometry as a Point. For polygons, the result - is not guaranteed to be interior. Point
length The length of this Curve in its associated spatial reference. Float
y The y-coordinate value for this Point. Float
x The x-coordinate value for this Point. Float
numGeometries The number of component geometries in this collection Integer
geometryN Returns the geometry N in this collection. Note that the index starts at 1. Geometry
startPoint The start Point of this LineString Point
endPoint The end Point of this LineString Point
isRing Returns 1 (TRUE) if this Curve is closed() and this Curve isSimple(). Boolean
isClosed Returns 1 (TRUE) if this Curve is closed. StartPoint() == EndPoint(). Boolean
getComponents Get all sub-geometry components of the geometry Array of geometries
numPoints The number of Points in this LineString Integer
pointN Returns the specified Point N in this LineString. Note that the index starts at - 1. Point
exteriorRing Returns the exterior ring of this Polygon. LineString
numInteriorRings Returns the number of interior rings in this Polygon. Integer
interiorRingN Returns the Nth interior ring for this Polygon as a LineString. Note that the - index starts at 1. LineString
dimension The inherent dimension of this geometric object. In non-homogeneous collections, - this will return the largest topological dimension of the contained objects. Integer
geometryType Returns the name of the instantiable subtype of Geometry of which this geometric - object is an instantiable member. The name of the subtype of Geometry is returned as - a string. String
SRID Returns the Spatial Reference System ID for this geometric object. integer
setSRID Set the Spatial Reference System ID for this geometric object. NULL
asArray Get the given geometry as an array of components (recursive) Array
getGeoInterface Get the geometryType and Coordinates as an array Array
-

- Aliases -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
getCentroid Alias for centroid() Point
getArea Alias for area() Float
getX Alias for x() Float
getY Alias for y() Float
getGeos Alias for geos() GEOSGeometry
getGeomType Alias for geometryType() String
getSRID Alias for SRID() Integer
asText Alias for $this->out('wkt') - String
asBinary Alias for $this->out('wkb') - String
-

- Advanced Methods -

-

The GEOS-php - extension needs to be installed for these functions to be available

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
geos Return a GEOSGeometry object representing this geometry GEOSGeometry
setGeos Set a GEOSGeometry object representing this geometry NULL
pointOnSurface A Point guaranteed to be within a polygon Point
equals Returns 1 (TRUE) if this geometry is “spatially equal” to another Geometry Boolean
equalsExact Returns 1 (TRUE) if this gemometric object is exactly the same as another object, - including the ordering of component parts Boolean
relate Returns 1 (TRUE) if this geometric object is spatially related to anotherGeometry - by testing for intersections between the interior, boundary and exterior of the two - geometric objects as specified by the values in the intersectionPatternMatrix. This - returns FALSE if all the tested intersections are empty except exterior (this) - intersect exterior (another). Boolean
checkValidity Boolean
isSimple Returns 1 (TRUE) if this geometry does not pass through the same point in space - more than once Boolean
project Project the geometry from from one SRID to another Geometry
buffer Returns a geometric object that represents all Points whose distance from this - geometric object is less than or equal to distance. Calculations are in the spatial - reference system of this geometric object. Because of the limitations of linear - interpolation, there will often be some relatively small error in this distance, but - it should be near the resolution of the coordinates used. Geometry
intersection Returns a geometric object that represents the Point set intersection of this - geometric object with anotherGeometry. See http://en.wikipedia.org/wiki/Intersection_(set_theory) - Geometry
convexHull Returns a geometric object that represents the convex hull of this geometric - object. See http://en.wikipedia.org/wiki/Convex_hull - Geometry
difference Returns a geometric object that represents the Point set difference of this - geometric object with anotherGeometry. Geometry
symDifference Returns a geometric object that represents the Point set symmetric difference of - this geometric object with another Geometry. See http://en.wikipedia.org/wiki/Symmetric_difference - Geometry
union Returns a geometric object that represents the Point set union of this geometric - object with anotherGeometry. See http://en.wikipedia.org/wiki/Union_(set_theory) - Geometry
simplify Simplify the geometry Geometry
disjoint Returns 1 (TRUE) if this geometric object is “spatially disjoint” from another - Geometry. Boolean
touches Returns 1 (TRUE) if this geometric object “spatially touches” another Geometry. Boolean
intersects Returns 1 (TRUE) if this geometric object “spatially intersects” another - Geometry. Boolean
crosses Returns 1 (TRUE) if this geometric object “spatially crosses? another Geometry. Boolean
within Returns 1 (TRUE) if this geometric object is “spatially within” another Geometry. Boolean
contains Returns 1 (TRUE) if this geometric object “spatially contains” another Geometry. Boolean
overlaps Returns 1 (TRUE) if this geometric object “spatially overlaps” another Geometry. Boolean
covers Alias for contains() Boolean
coveredBy Alias for within() Boolean
distance Returns the shortest distance between any two Points in the two geometric objects - as calculated in the spatial reference system of this geometric object. Because the - geometries are closed, it is possible to find a point on each geometric object - involved, such that the distance between these 2 points is the returned distance - between their geometric objects. Float
hausdorffDistance See http://en.wikipedia.org/wiki/Hausdorff_distance - Float
-

- Placeholders -

-

These methods are part of the specification, but are not really supported by geoPHP.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Method - - Description - - Returns -
hasZ returns FALSE. geoPHP does not support Z values at the moment. Boolean
is3D returns FALSE. geoPHP does not support 3D geometries at the moment. Boolean
isMeasured returns FALSE. geoPHP does not yet support M values Boolean
isEmpty returns FALSE. geoPHP does not yet support empty geometries Boolean
coordinateDimension returns 2. geoPHP only supports 2-dimentional space Integer
z returns NULL. geoPHP does not support Z values at the moment NULL
m returns NULL. geoPHP does not support M values NULL
-
-
-
-
-