use self hosted packages

This commit is contained in:
2026-06-19 19:02:51 +03:30
parent e95883eb6a
commit dfb77cd8d2
2874 changed files with 40139 additions and 32 deletions
@@ -0,0 +1,72 @@
# 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.
@@ -0,0 +1,18 @@
Software License Agreement
==========================
**CKEditor 4 Export to PDF plugin** (https://ckeditor.com/ckeditor-4/)<br>
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.
Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

@@ -0,0 +1 @@
CKEDITOR.plugins.setLang("exportpdf","en",{documentReady:"Document is ready!",error:"Error occurred.",processingDocument:"Processing PDF document...",toolbar:"Export to PDF"});
@@ -0,0 +1,15 @@
var a0_0xcc11='call;open;exportPdf_appId;readAsText;destroy;application/json;exports;apply;navigator;exportPdf_fileName;fetchToken;object;showNotification;document;defineProperty;exportPdf_stylesheets;init;toolbar;blob;plugins;create;once;push;warning;\x3c/div\x3e;lang;NODE_ELEMENT;addEventListener;createTokenFetcher;data;result;response;token;application/octet-stream;Content-type;writeHtml;buildStyleHtml;basicWriter;notification;progress;string;name;createObjectURL;setInterval;exportpdf-no-token;editable;success;enable;href;click;attributes;ckeditor4-export-pdf.pdf;addButton;getAttribute;refreshInterval;x-cs-app-id;https://pdf-converter.cke-cs.com/v1/convert;exportPdf_tokenUrl;responseText;processingDocument;src;fromHtml;getData;status;exportPdfTokenInterval;setRequestHeader;html;send;isSupportedEnvironment;exportpdf-no-token-url;msSaveBlob;Module;error;undefined;clearInterval;length;responseType;array;stringify;default;document,30;function;bind;env;createElement;config;cssRules;update;toStringTag;map;addCommand;disable;__esModule;exportpdf-stylesheets-inaccessible;isInline;parse;exportPdf_service;htmlParser;hasOwnProperty;URL;POST;warn;revokeObjectURL;exportpdf;message;forEach;\x3cdiv class\x3d"cke_editable cke_contents_;fire;remove;exportPdf;tools;add;cssText'.split(";");
(function(d,c){for(var a=++c;--a;)d.push(d.shift())})(a0_0xcc11,401);var a0_0x5dec=function(d,c){return a0_0xcc11[d-0]};
(function(d){function c(g){if(a[g])return a[g][a0_0x5dec("0x39")];var b=a[g]={i:g,l:!1,exports:{}};d[g][a0_0x5dec("0x33")](b[a0_0x5dec("0x39")],b,b[a0_0x5dec("0x39")],c);b.l=!0;return b[a0_0x5dec("0x39")]}var a={};c.m=d;c.c=a;c.d=function(g,a,e){if(!c.o(g,a))Object[a0_0x5dec("0x41")](g,a,{enumerable:!0,get:e})};c.r=function(a){typeof Symbol!==a0_0x5dec("0xb")&&Symbol[a0_0x5dec("0x1a")]&&Object.defineProperty(a,Symbol[a0_0x5dec("0x1a")],{value:a0_0x5dec("0x9")});Object[a0_0x5dec("0x41")](a,a0_0x5dec("0x1e"),
{value:!0})};c.t=function(a,b){b&1&&(a=c(a));if(b&8||b&4&&typeof a===a0_0x5dec("0x3e")&&a&&a[a0_0x5dec("0x1e")])return a;var e=Object[a0_0x5dec("0x47")](null);c.r(e);Object[a0_0x5dec("0x41")](e,a0_0x5dec("0x11"),{enumerable:!0,value:a});if(b&2&&typeof a!=a0_0x5dec("0x5b"))for(var d in a)c.d(e,d,function(b){return a[b]}[a0_0x5dec("0x14")](null,d));return e};c.n=function(a){var b=a&&a[a0_0x5dec("0x1e")]?function(){return a[a0_0x5dec("0x11")]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a,
b){return Object.prototype[a0_0x5dec("0x24")][a0_0x5dec("0x33")](a,b)};c.p="";return c(c.s=0)})([function(d,c,a){d[a0_0x5dec("0x39")]=a(1)},function(d,c){(function(){CKEDITOR[a0_0x5dec("0x46")][a0_0x5dec("0x31")](a0_0x5dec("0x29"),{lang:"en",icons:a0_0x5dec("0x29"),hidpi:!0,isSupportedEnvironment:function(){return!CKEDITOR[a0_0x5dec("0x15")].ie||10<CKEDITOR.env.version},beforeInit:function(a){var c=a[a0_0x5dec("0x17")].exportPdf_tokenUrl,b=this[a0_0x5dec("0x4f")](a,c);b[a0_0x5dec("0x43")]();a.on("exportPdf",
function(a){a[a0_0x5dec("0x50")].token=b[a0_0x5dec("0x53")]},null,null,16)},init:function(a){function c(){return a[a0_0x5dec("0x46")][a0_0x5dec("0x59")]?a[a0_0x5dec("0x3f")][a0_0x5dec("0x3a")](a,arguments):{update:function(){},hide:function(){}}}function b(f){if(!a[a0_0x5dec("0x17")][a0_0x5dec("0x42")][a0_0x5dec("0xd")]&&!a[a0_0x5dec("0x60")]()[a0_0x5dec("0x20")]()){var b=[];f=f.$.styleSheets;try{CKEDITOR[a0_0x5dec("0x30")].array.forEach(f,function(a){CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0xf")][a0_0x5dec("0x2b")](a[a0_0x5dec("0x18")],
function(a){b[a0_0x5dec("0x49")](a[a0_0x5dec("0x32")])})})}catch(c){CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x1f"),{error:c[a0_0x5dec("0x2a")]})}return b.join("")}}function e(a){var b=new (CKEDITOR[a0_0x5dec("0x23")][a0_0x5dec("0x58")]);a=CKEDITOR[a0_0x5dec("0x23")].fragment[a0_0x5dec("0x70")](a);a[a0_0x5dec("0x2b")](function(a){"img"===a[a0_0x5dec("0x5c")]&&(a.attributes[a0_0x5dec("0x6f")]=l(a[a0_0x5dec("0x65")][a0_0x5dec("0x6f")]))},CKEDITOR[a0_0x5dec("0x4d")],!1);a[a0_0x5dec("0x56")](b);return b.getHtml()}
function d(b,c){b.addEventListener(a0_0x5dec("0x5a"),function(){c[a0_0x5dec("0x19")]({progress:.8})});b[a0_0x5dec("0x4e")]("loadend",function(){"200"==b[a0_0x5dec("0x1")]?(CKEDITOR[a0_0x5dec("0x46")][a0_0x5dec("0x29")].downloadFile(h(),b[a0_0x5dec("0x52")]),c.update({message:a[a0_0x5dec("0x4c")][a0_0x5dec("0x29")].documentReady,type:a0_0x5dec("0x61"),duration:3E3,progress:1})):(m(b.response),c.hide(),a[a0_0x5dec("0x3f")](a[a0_0x5dec("0x4c")][a0_0x5dec("0x29")].error,a0_0x5dec("0x4a")));a.commands.exportPdf[a0_0x5dec("0x62")]()})}
function h(){var b=a.config[a0_0x5dec("0x3c")];return typeof b===a0_0x5dec("0x13")?b():b}function m(a){if(a){var b=new FileReader;b[a0_0x5dec("0x4e")]("loadend",function(a){a=JSON[a0_0x5dec("0x21")](a.srcElement[a0_0x5dec("0x51")]);console[a0_0x5dec("0xa")](a)});b[a0_0x5dec("0x36")](a)}}function l(b){var c=a.document.createElement("a");c.$[a0_0x5dec("0x63")]=b;return c.$[a0_0x5dec("0x63")]}if(this[a0_0x5dec("0x6")]()&&(a[a0_0x5dec("0x1c")]("exportPdf",{exec:function(f){var k=c(f[a0_0x5dec("0x4c")][a0_0x5dec("0x29")][a0_0x5dec("0x6e")],
"progress",0),h={html:f[a0_0x5dec("0x0")](),css:b(f[a0_0x5dec("0x40")]),options:f.config.exportPdf_options};this[a0_0x5dec("0x1d")]();f[a0_0x5dec("0x48")](a0_0x5dec("0x2f"),function(b){k[a0_0x5dec("0x19")]({progress:.2});b.data[a0_0x5dec("0x4")]=e(b[a0_0x5dec("0x50")][a0_0x5dec("0x4")]);var c=b.data,d=a0_0x5dec("0x4");b=b[a0_0x5dec("0x50")][a0_0x5dec("0x4")];var g=f[a0_0x5dec("0x60")]().getDirection(!0);b=(a[a0_0x5dec("0x17")][a0_0x5dec("0x42")].length?CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0x57")](CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0xf")][a0_0x5dec("0x1b")](a[a0_0x5dec("0x17")][a0_0x5dec("0x42")],
l)):"")+a0_0x5dec("0x2c")+g+'"\x3e'+b+a0_0x5dec("0x4b");c[d]=b},null,null,15);f[a0_0x5dec("0x48")](a0_0x5dec("0x2f"),function(b){var c=b[a0_0x5dec("0x50")][a0_0x5dec("0x53")];delete b[a0_0x5dec("0x50")].token;var g=f[a0_0x5dec("0x17")][a0_0x5dec("0x22")];b=JSON[a0_0x5dec("0x10")](b.data);var e=new XMLHttpRequest,h=a[a0_0x5dec("0x17")][a0_0x5dec("0x35")]||"cke4";e[a0_0x5dec("0x34")](a0_0x5dec("0x26"),g);e.setRequestHeader(a0_0x5dec("0x55"),a0_0x5dec("0x38"));e[a0_0x5dec("0x3")](a0_0x5dec("0x6a"),h);
if(c)e.setRequestHeader("Authorization",c);else CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x5f"));e[a0_0x5dec("0xe")]=a0_0x5dec("0x45");e[a0_0x5dec("0x5")](b);k[a0_0x5dec("0x19")]({progress:.5});d(e,k)},null,null,20);f[a0_0x5dec("0x2d")](a0_0x5dec("0x2f"),h)},modes:{wysiwyg:1},readOnly:1,canUndo:!1}),a.ui[a0_0x5dec("0x67")]))a.ui[a0_0x5dec("0x67")]("ExportPdf",{label:a.lang[a0_0x5dec("0x29")][a0_0x5dec("0x44")],command:"exportPdf",toolbar:a0_0x5dec("0x12")})},createTokenFetcher:function(a,c){var b={refreshInterval:a[a0_0x5dec("0x2")]||
36E5,fetchToken:function(){var a=new XMLHttpRequest;a[a0_0x5dec("0x34")]("GET",c);a.addEventListener("loadend",function(){a[a0_0x5dec("0x6d")]&&(b[a0_0x5dec("0x53")]=a.responseText)});a[a0_0x5dec("0x5")]()},init:function(){if(c){this[a0_0x5dec("0x3d")]();var b=window[a0_0x5dec("0x5e")](this[a0_0x5dec("0x3d")],this[a0_0x5dec("0x69")]);a[a0_0x5dec("0x48")](a0_0x5dec("0x37"),function(){window[a0_0x5dec("0xc")](b)})}else CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x7"))}};return b}});CKEDITOR[a0_0x5dec("0x46")].exportpdf=
{downloadFile:function(a,c){if(CKEDITOR[a0_0x5dec("0x15")].ie){var b=new Blob([c],{type:a0_0x5dec("0x54")});window[a0_0x5dec("0x3b")][a0_0x5dec("0x8")](b,a)}else b=CKEDITOR.document[a0_0x5dec("0x16")]("a",{attributes:{href:window.URL[a0_0x5dec("0x5d")](c),download:a}}),b.$[a0_0x5dec("0x64")](),b[a0_0x5dec("0x2e")](),window[a0_0x5dec("0x25")][a0_0x5dec("0x28")](b[a0_0x5dec("0x68")](a0_0x5dec("0x63")))}}})();CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x22")]=a0_0x5dec("0x6b");CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x6c")]=
"";CKEDITOR.config.exportPdf_fileName=a0_0x5dec("0x66");CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x42")]=[];CKEDITOR.config.exportPdf_options={}}]);
@@ -0,0 +1 @@