@ckeditor/ckeditor5-export-pdf 41.4.0-alpha.0 → 41.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/export-pdf.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +2 -1
- package/lang/translations/af.po +16 -0
- package/lang/translations/ar.po +16 -0
- package/lang/translations/bg.po +16 -0
- package/lang/translations/bn.po +16 -0
- package/lang/translations/ca.po +16 -0
- package/lang/translations/cs.po +16 -0
- package/lang/translations/da.po +16 -0
- package/lang/translations/de.po +16 -0
- package/lang/translations/el.po +16 -0
- package/lang/translations/en-au.po +16 -0
- package/lang/translations/en.po +16 -0
- package/lang/translations/es-co.po +16 -0
- package/lang/translations/es.po +16 -0
- package/lang/translations/et.po +16 -0
- package/lang/translations/fi.po +16 -0
- package/lang/translations/fr.po +16 -0
- package/lang/translations/gl.po +16 -0
- package/lang/translations/he.po +16 -0
- package/lang/translations/hi.po +16 -0
- package/lang/translations/hr.po +16 -0
- package/lang/translations/hu.po +16 -0
- package/lang/translations/id.po +16 -0
- package/lang/translations/it.po +16 -0
- package/lang/translations/ja.po +16 -0
- package/lang/translations/jv.po +16 -0
- package/lang/translations/ko.po +16 -0
- package/lang/translations/lt.po +16 -0
- package/lang/translations/lv.po +16 -0
- package/lang/translations/ms.po +16 -0
- package/lang/translations/nl.po +16 -0
- package/lang/translations/no.po +16 -0
- package/lang/translations/pl.po +16 -0
- package/lang/translations/pt-br.po +16 -0
- package/lang/translations/pt.po +16 -0
- package/lang/translations/ro.po +16 -0
- package/lang/translations/ru.po +16 -0
- package/lang/translations/sk.po +16 -0
- package/lang/translations/sr-latn.po +16 -0
- package/lang/translations/sr.po +16 -0
- package/lang/translations/sv.po +16 -0
- package/lang/translations/th.po +16 -0
- package/lang/translations/tr.po +16 -0
- package/lang/translations/ug.po +16 -0
- package/lang/translations/uk.po +16 -0
- package/lang/translations/ur.po +16 -0
- package/lang/translations/vi.po +16 -0
- package/lang/translations/zh-cn.po +16 -0
- package/lang/translations/zh.po +16 -0
- package/package.json +2 -2
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
package/lang/translations/uk.po
CHANGED
|
@@ -24,3 +24,19 @@ msgstr "Експортувати в PDF"
|
|
|
24
24
|
msgctxt "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
25
25
|
msgid "An error occurred while generating the PDF."
|
|
26
26
|
msgstr "Під час створення PDF-файлу сталася помилка."
|
|
27
|
+
|
|
28
|
+
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
|
+
msgid "PDF export started"
|
|
30
|
+
msgstr "Розпочато експорт PDF-файла"
|
|
31
|
+
|
|
32
|
+
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
|
+
msgid "PDF export failed"
|
|
34
|
+
msgstr "Не вдалось експортувати PDF-файл"
|
|
35
|
+
|
|
36
|
+
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
|
+
msgid "PDF export successful"
|
|
38
|
+
msgstr "Успішно експортовано PDF-файл"
|
|
39
|
+
|
|
40
|
+
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
|
+
msgid "Exporting PDF document"
|
|
42
|
+
msgstr "Експорт PDF-документа"
|
package/lang/translations/ur.po
CHANGED
|
@@ -24,3 +24,19 @@ msgstr "پی ڈی ایف برآمد"
|
|
|
24
24
|
msgctxt "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
25
25
|
msgid "An error occurred while generating the PDF."
|
|
26
26
|
msgstr "پی ڈی ایف بنانے میں نقص واقع ہوا۔"
|
|
27
|
+
|
|
28
|
+
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
|
+
msgid "PDF export started"
|
|
30
|
+
msgstr ""
|
|
31
|
+
|
|
32
|
+
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
|
+
msgid "PDF export failed"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
|
+
msgid "PDF export successful"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
40
|
+
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
|
+
msgid "Exporting PDF document"
|
|
42
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -24,3 +24,19 @@ msgstr "Xuất ra định dạng PDF"
|
|
|
24
24
|
msgctxt "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
25
25
|
msgid "An error occurred while generating the PDF."
|
|
26
26
|
msgstr "Đã xảy ra lỗi khi tạo tệp PDF."
|
|
27
|
+
|
|
28
|
+
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
|
+
msgid "PDF export started"
|
|
30
|
+
msgstr "Đã bắt đầu xuất tài liệu PDF"
|
|
31
|
+
|
|
32
|
+
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
|
+
msgid "PDF export failed"
|
|
34
|
+
msgstr "Không xuất được tài liệu PDF"
|
|
35
|
+
|
|
36
|
+
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
|
+
msgid "PDF export successful"
|
|
38
|
+
msgstr "Đã xuất tài liệu PDF thành công"
|
|
39
|
+
|
|
40
|
+
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
|
+
msgid "Exporting PDF document"
|
|
42
|
+
msgstr "Đang xuất tài liệu PDF"
|
|
@@ -24,3 +24,19 @@ msgstr "导出为PDF"
|
|
|
24
24
|
msgctxt "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
25
25
|
msgid "An error occurred while generating the PDF."
|
|
26
26
|
msgstr "生成PDF时发生了异常。"
|
|
27
|
+
|
|
28
|
+
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
|
+
msgid "PDF export started"
|
|
30
|
+
msgstr "PDF 导出开始"
|
|
31
|
+
|
|
32
|
+
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
|
+
msgid "PDF export failed"
|
|
34
|
+
msgstr "PDF 导出失败"
|
|
35
|
+
|
|
36
|
+
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
|
+
msgid "PDF export successful"
|
|
38
|
+
msgstr "PDF 导出成功"
|
|
39
|
+
|
|
40
|
+
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
|
+
msgid "Exporting PDF document"
|
|
42
|
+
msgstr "正在导出 PDF 文档"
|
package/lang/translations/zh.po
CHANGED
|
@@ -24,3 +24,19 @@ msgstr "匯出為 PDF"
|
|
|
24
24
|
msgctxt "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
25
25
|
msgid "An error occurred while generating the PDF."
|
|
26
26
|
msgstr "產生 PDF 時發生錯誤。"
|
|
27
|
+
|
|
28
|
+
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
|
+
msgid "PDF export started"
|
|
30
|
+
msgstr "PDF 匯出開始"
|
|
31
|
+
|
|
32
|
+
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
|
+
msgid "PDF export failed"
|
|
34
|
+
msgstr "PDF 匯出失敗"
|
|
35
|
+
|
|
36
|
+
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
|
+
msgid "PDF export successful"
|
|
38
|
+
msgstr "PDF 匯出成功"
|
|
39
|
+
|
|
40
|
+
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
|
+
msgid "Exporting PDF document"
|
|
42
|
+
msgstr "正在匯出 PDF 文件"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "41.4.
|
|
3
|
+
"version": "41.4.1",
|
|
4
4
|
"description": "Export to PDF feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"ckeditor5": "41.4.
|
|
33
|
+
"ckeditor5": "41.4.1"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x53e5e1=_0x45e1;(function(_0xa3e3c7,_0x1cf6c7){const _0x4aba2a=_0x45e1,_0x4fdcee=_0xa3e3c7();while(!![]){try{const _0x1c4919=parseInt(_0x4aba2a(0x10e))/0x1*(parseInt(_0x4aba2a(0x102))/0x2)+-parseInt(_0x4aba2a(0xf8))/0x3*(-parseInt(_0x4aba2a(0xfb))/0x4)+parseInt(_0x4aba2a(0xfc))/0x5+-parseInt(_0x4aba2a(0x106))/0x6*(parseInt(_0x4aba2a(0xfe))/0x7)+-parseInt(_0x4aba2a(0x108))/0x8+-parseInt(_0x4aba2a(0xf7))/0x9+parseInt(_0x4aba2a(0xff))/0xa*(parseInt(_0x4aba2a(0xfd))/0xb);if(_0x1c4919===_0x1cf6c7)break;else _0x4fdcee['push'](_0x4fdcee['shift']());}catch(_0x985a9){_0x4fdcee['push'](_0x4fdcee['shift']());}}}(_0x23b0,0xe6cca));import{Plugin as _0x5447ee}from'ckeditor5/src/core.js';import{Notification as _0x98651d}from'ckeditor5/src/ui.js';import _0x572e7b from'./exportpdfcommand.js';function _0x45e1(_0x1e6c38,_0x355871){const _0x23b036=_0x23b0();return _0x45e1=function(_0x45e184,_0x2561aa){_0x45e184=_0x45e184-0xf3;let _0xb724df=_0x23b036[_0x45e184];return _0xb724df;},_0x45e1(_0x1e6c38,_0x355871);}import _0x3c4c97 from'./exportpdfui.js';function _0x23b0(){const _0x2662df=['14098064AmgXeZ','pluginName','add','get','CloudServices','ExportPdf','821JvkNZP','plugins','token','commands','tokenUrl','15212619nRjfyX','48AnMArZ','then','exportPdf','145652aNvYeQ','258990orHIKs','1474EhynwZ','6344051bCqPYl','303330ikbilj','init','_token','3682KDmWrR','requires','config','editor','12tIBOBk','registerTokenUrl'];_0x23b0=function(){return _0x2662df;};return _0x23b0();}export default class s extends _0x5447ee{static get[_0x53e5e1(0x109)](){const _0x5ca3f8=_0x53e5e1;return _0x5ca3f8(0x10d);}static get[_0x53e5e1(0x103)](){const _0x188acc=_0x53e5e1;return[_0x188acc(0x10c),_0x98651d,_0x3c4c97];}[_0x53e5e1(0x100)](){const _0x4d7dd0=_0x53e5e1,_0x44b0f7=this[_0x4d7dd0(0x105)],_0x32d1fd=_0x44b0f7[_0x4d7dd0(0x104)][_0x4d7dd0(0x10b)](_0x4d7dd0(0xfa))||{};_0x44b0f7[_0x4d7dd0(0xf5)][_0x4d7dd0(0x10a)](_0x4d7dd0(0xfa),new _0x572e7b(_0x44b0f7));const _0xd6166c=_0x44b0f7[_0x4d7dd0(0xf3)][_0x4d7dd0(0x10b)](_0x4d7dd0(0x10c));!0x1===_0x32d1fd[_0x4d7dd0(0xf6)]?this[_0x4d7dd0(0x101)]=null:_0x32d1fd[_0x4d7dd0(0xf6)]?_0xd6166c[_0x4d7dd0(0x107)](_0x32d1fd[_0x4d7dd0(0xf6)])[_0x4d7dd0(0xf9)](_0x2ad029=>{const _0x2ff20f=_0x4d7dd0;this[_0x2ff20f(0x101)]=_0x2ad029;}):this[_0x4d7dd0(0x101)]=_0xd6166c[_0x4d7dd0(0xf4)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x56625a}from'ckeditor5/src/core.js';import{getStyles as _0xffa46d}from'./utils.js';export default class o extends _0x56625a{constructor(_0x99914b){super(_0x99914b),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2e3d1f={}){const _0x4fc86c=this['editor'],t=_0x4fc86c['t'],_0x3b6c58=_0x2e3d1f['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x5f3015=_0x2e3d1f['dataCallback']||(_0xdf3cd6=>_0xdf3cd6['data']['get']()),_0x2f53a9=_0x4fc86c['plugins']['get']('ExportPdf'),_0x2a404f=_0x2e3d1f['token']||_0x2f53a9['_token'];return this['isBusy']=!0x0,this['refresh'](),_0xffa46d(_0x2e3d1f['stylesheets']||['EDITOR_STYLES'])['then'](async _0x117370=>{_0x4fc86c['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x1d9fac={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x4fc86c['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5f3015(_0x4fc86c)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x117370,'options':_0x2e3d1f['converterOptions']},_0x9d99a7={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x2a404f?{'Authorization':_0x2a404f['value']}:null,'x-cs-app-id':_0x2e3d1f['appID']||'cke5'},'body':JSON['stringify'](_0x1d9fac)};return window['fetch'](_0x3b6c58,_0x9d99a7)['then'](_0x3385cc=>{if(0xc8!==_0x3385cc['status'])throw _0x3385cc;return _0x3385cc['blob']();})['then'](_0xdf69eb=>{_0x4fc86c['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x3825c2='function'==typeof _0x2e3d1f['fileName']?_0x2e3d1f['fileName']():_0x2e3d1f['fileName'];this['_downloadFile'](_0xdf69eb,_0x3825c2||'document.pdf');});})['catch'](_0x2ff802=>{const _0x17a630=_0x4fc86c['plugins']['get']('Notification');throw _0x4fc86c['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x17a630['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x2ff802;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x9b0f4c,_0x51930b){const _0x1195ce=document['createElement']('a');_0x1195ce['href']=window['URL']['createObjectURL'](_0x9b0f4c),_0x1195ce['download']=_0x51930b,_0x1195ce['click'](),_0x1195ce['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1dc618}from'ckeditor5/src/core.js';import{ButtonView as _0x5f4d03,MenuBarMenuListItemButtonView as _0x19918f,SpinnerView as _0x20b532}from'ckeditor5/src/ui.js';import _0x4ab7bb from'../theme/icons/exportpdf.svg';export default class i extends _0x1dc618{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x2fedd5=this['editor'];_0x2fedd5['ui']['componentFactory']['add']('exportPdf',()=>{const _0x3c811c=this['_createButton'](_0x5f4d03),_0x25aa90=_0x2fedd5['commands']['get']('exportPdf');return _0x3c811c['set']({'tooltip':!0x0}),_0x3c811c['bind']('isOn')['to'](_0x25aa90,'isBusy'),_0x3c811c;}),_0x2fedd5['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x19918f));}['_createButton'](_0xbd99c8){const _0xcfbfd5=this['editor'],_0x8b449a=_0xcfbfd5['config']['get']('exportPdf')||{},t=_0xcfbfd5['locale']['t'],_0x4fef29=_0xcfbfd5['commands']['get']('exportPdf'),_0x21dfe7=new _0xbd99c8(_0xcfbfd5['locale']),_0x2aaee0=new _0x20b532();return _0x21dfe7['children']['add'](_0x2aaee0),_0x2aaee0['bind']('isVisible')['to'](_0x4fef29,'isBusy'),_0x21dfe7['iconView']['bind']('isVisible')['to'](_0x4fef29,'isBusy',_0x5f7900=>!_0x5f7900),_0x21dfe7['set']({'icon':_0x4ab7bb}),_0x21dfe7['bind']('isEnabled')['to'](_0x4fef29,'isEnabled'),_0x21dfe7['bind']('label')['to'](_0x4fef29,'isBusy',_0x156567=>t(_0x156567?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x21dfe7,'execute',()=>{_0xcfbfd5['execute']('exportPdf',_0x8b449a),_0xcfbfd5['editing']['view']['focus']();}),_0x21dfe7;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3306b5,_0x11124f){var _0x541aa1=_0x182e,_0x271f8b=_0x3306b5();while(!![]){try{var _0x3e47e8=-parseInt(_0x541aa1(0x1bb))/0x1*(-parseInt(_0x541aa1(0x1bc))/0x2)+parseInt(_0x541aa1(0x1b9))/0x3*(parseInt(_0x541aa1(0x1bf))/0x4)+parseInt(_0x541aa1(0x1c1))/0x5+parseInt(_0x541aa1(0x1b8))/0x6*(parseInt(_0x541aa1(0x1ba))/0x7)+parseInt(_0x541aa1(0x1c3))/0x8+parseInt(_0x541aa1(0x1c0))/0x9*(parseInt(_0x541aa1(0x1c2))/0xa)+parseInt(_0x541aa1(0x1bd))/0xb*(-parseInt(_0x541aa1(0x1be))/0xc);if(_0x3e47e8===_0x11124f)break;else _0x271f8b['push'](_0x271f8b['shift']());}catch(_0x382225){_0x271f8b['push'](_0x271f8b['shift']());}}}(_0x3bbf,0xcb785));export{default as ExportPdf}from'./exportpdf.js';function _0x3bbf(){var _0x8ce3f=['7509136DqJpCL','2628nLqtWC','33KubpxS','20909hVWPku','994998eQYLVf','2swQSPL','33BaXhKL','18975756GEtHzJ','166396NzOAdr','7405407jIFLqo','5274970CzbBGq','10Yiqdbj'];_0x3bbf=function(){return _0x8ce3f;};return _0x3bbf();}function _0x182e(_0x57f1a7,_0x163775){var _0x3bbffa=_0x3bbf();return _0x182e=function(_0x182ef6,_0x29855d){_0x182ef6=_0x182ef6-0x1b8;var _0xcd18e9=_0x3bbffa[_0x182ef6];return _0xcd18e9;},_0x182e(_0x57f1a7,_0x163775);}import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
(function(_0x100bce,_0x270648){const _0x1536ef=_0xcde0,_0x354bb6=_0x100bce();while(!![]){try{const _0x2bbbbe=-parseInt(_0x1536ef(0x1be))/0x1+-parseInt(_0x1536ef(0x1a8))/0x2+-parseInt(_0x1536ef(0x1ad))/0x3*(-parseInt(_0x1536ef(0x1a5))/0x4)+parseInt(_0x1536ef(0x1bd))/0x5+parseInt(_0x1536ef(0x1a7))/0x6+-parseInt(_0x1536ef(0x1b4))/0x7+-parseInt(_0x1536ef(0x1ac))/0x8;if(_0x2bbbbe===_0x270648)break;else _0x354bb6['push'](_0x354bb6['shift']());}catch(_0x324dcf){_0x354bb6['push'](_0x354bb6['shift']());}}}(_0x59e1,0xee61c));function _0x59e1(){const _0x250382=['The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','indexOf','EDITOR_STYLES','8281880HMtFfQ','1158GhfPcA','hasAttribute','text','push','cssText','trim','warn','5708577Apvtuj','cssRules','styleSheets','ownerNode','then','fetch','data-cke','from','all','5260565guhpWQ','653175rQHRhz','length','.ck-content',':root','9292waUNYK','join','11142462gKvZJY','651070NHAhXv'];_0x59e1=function(){return _0x250382;};return _0x59e1();}export function getStyles(_0x5d5de0){const _0x2a7593=_0xcde0;if(!_0x5d5de0)return new Promise(_0x3c92ff=>_0x3c92ff(''));const _0x1d77f5=[];for(const _0x192db1 of _0x5d5de0)_0x2a7593(0x1ab)!==_0x192db1?_0x1d77f5[_0x2a7593(0x1b0)](window[_0x2a7593(0x1b9)](_0x192db1)[_0x2a7593(0x1b8)](_0x4d22c0=>_0x4d22c0[_0x2a7593(0x1af)]())):_0x1d77f5[_0x2a7593(0x1b0)](f());return Promise[_0x2a7593(0x1bc)](_0x1d77f5)[_0x2a7593(0x1b8)](_0x51a864=>_0x51a864[_0x2a7593(0x1a6)]('\x20')[_0x2a7593(0x1b2)]());}function _0xcde0(_0xe1fa23,_0x25cf2a){const _0x59e16d=_0x59e1();return _0xcde0=function(_0xcde0e7,_0x25caba){_0xcde0e7=_0xcde0e7-0x1a4;let _0x237525=_0x59e16d[_0xcde0e7];return _0x237525;},_0xcde0(_0xe1fa23,_0x25cf2a);}function f(){const _0x193d9b=_0xcde0,_0x1c682d=[],_0x583ce4=[];for(const _0x1a0e83 of Array[_0x193d9b(0x1bb)](document[_0x193d9b(0x1b6)])){if(_0x1a0e83[_0x193d9b(0x1b7)][_0x193d9b(0x1ae)](_0x193d9b(0x1ba))){for(const _0x56f9a4 of Array[_0x193d9b(0x1bb)](_0x1a0e83[_0x193d9b(0x1b5)]))-0x1!==_0x56f9a4[_0x193d9b(0x1b1)][_0x193d9b(0x1aa)](_0x193d9b(0x1c0))?_0x1c682d[_0x193d9b(0x1b0)](_0x56f9a4[_0x193d9b(0x1b1)]):-0x1!==_0x56f9a4[_0x193d9b(0x1b1)][_0x193d9b(0x1aa)](_0x193d9b(0x1a4))&&_0x583ce4[_0x193d9b(0x1b0)](_0x56f9a4[_0x193d9b(0x1b1)]);}}return _0x1c682d[_0x193d9b(0x1bf)]||console[_0x193d9b(0x1b3)](_0x193d9b(0x1a9)),[..._0x583ce4,..._0x1c682d][_0x193d9b(0x1a6)]('\x20')[_0x193d9b(0x1b2)]();}
|