@ckeditor/ckeditor5-format-painter 40.0.0 → 40.2.0

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.
Files changed (107) hide show
  1. package/LICENSE.md +4 -4
  2. package/README.md +1 -1
  3. package/build/format-painter.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es.js +1 -1
  14. package/build/translations/et.js +1 -1
  15. package/build/translations/fi.js +1 -1
  16. package/build/translations/fr.js +1 -1
  17. package/build/translations/gl.js +1 -1
  18. package/build/translations/he.js +1 -1
  19. package/build/translations/hi.js +1 -1
  20. package/build/translations/hr.js +1 -1
  21. package/build/translations/hu.js +1 -1
  22. package/build/translations/id.js +1 -1
  23. package/build/translations/it.js +1 -1
  24. package/build/translations/ja.js +1 -1
  25. package/build/translations/ko.js +1 -1
  26. package/build/translations/lt.js +1 -1
  27. package/build/translations/lv.js +1 -1
  28. package/build/translations/ms.js +1 -1
  29. package/build/translations/nl.js +1 -1
  30. package/build/translations/no.js +1 -1
  31. package/build/translations/pl.js +1 -1
  32. package/build/translations/pt-br.js +1 -1
  33. package/build/translations/pt.js +1 -1
  34. package/build/translations/ro.js +1 -1
  35. package/build/translations/ru.js +1 -1
  36. package/build/translations/sk.js +1 -1
  37. package/build/translations/sr-latn.js +1 -0
  38. package/build/translations/sr.js +1 -1
  39. package/build/translations/sv.js +1 -1
  40. package/build/translations/th.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/ug.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/vi.js +1 -1
  45. package/build/translations/zh-cn.js +1 -1
  46. package/build/translations/zh.js +1 -1
  47. package/lang/contexts.json +3 -1
  48. package/lang/translations/ar.po +8 -0
  49. package/lang/translations/bg.po +8 -0
  50. package/lang/translations/bn.po +8 -0
  51. package/lang/translations/ca.po +8 -0
  52. package/lang/translations/cs.po +8 -0
  53. package/lang/translations/da.po +8 -0
  54. package/lang/translations/de.po +8 -0
  55. package/lang/translations/el.po +8 -0
  56. package/lang/translations/en-au.po +8 -0
  57. package/lang/translations/en.po +8 -0
  58. package/lang/translations/es.po +8 -0
  59. package/lang/translations/et.po +8 -0
  60. package/lang/translations/fi.po +8 -0
  61. package/lang/translations/fr.po +8 -0
  62. package/lang/translations/gl.po +8 -0
  63. package/lang/translations/he.po +8 -0
  64. package/lang/translations/hi.po +8 -0
  65. package/lang/translations/hr.po +8 -0
  66. package/lang/translations/hu.po +8 -0
  67. package/lang/translations/id.po +8 -0
  68. package/lang/translations/it.po +8 -0
  69. package/lang/translations/ja.po +8 -0
  70. package/lang/translations/ko.po +8 -0
  71. package/lang/translations/lt.po +8 -0
  72. package/lang/translations/lv.po +8 -0
  73. package/lang/translations/ms.po +8 -0
  74. package/lang/translations/nl.po +8 -0
  75. package/lang/translations/no.po +8 -0
  76. package/lang/translations/pl.po +8 -0
  77. package/lang/translations/pt-br.po +8 -0
  78. package/lang/translations/pt.po +8 -0
  79. package/lang/translations/ro.po +8 -0
  80. package/lang/translations/ru.po +8 -0
  81. package/lang/translations/sk.po +8 -0
  82. package/lang/translations/sr-latn.po +38 -0
  83. package/lang/translations/sr.po +8 -0
  84. package/lang/translations/sv.po +8 -0
  85. package/lang/translations/th.po +8 -0
  86. package/lang/translations/tr.po +8 -0
  87. package/lang/translations/ug.po +8 -0
  88. package/lang/translations/uk.po +8 -0
  89. package/lang/translations/vi.po +8 -0
  90. package/lang/translations/zh-cn.po +8 -0
  91. package/lang/translations/zh.po +8 -0
  92. package/package.json +2 -2
  93. package/src/augmentation.d.ts +16 -16
  94. package/src/copyformatcommand.d.ts +37 -37
  95. package/src/copyformatcommand.js +1 -1
  96. package/src/formatpainter.d.ts +28 -28
  97. package/src/formatpainter.js +1 -1
  98. package/src/formatpainterediting.d.ts +36 -36
  99. package/src/formatpainterediting.js +1 -1
  100. package/src/formatpainterui.d.ts +32 -32
  101. package/src/formatpainterui.js +1 -1
  102. package/src/index.d.ts +14 -14
  103. package/src/index.js +1 -1
  104. package/src/pasteformatcommand.d.ts +23 -23
  105. package/src/pasteformatcommand.js +1 -1
  106. package/src/utils.d.ts +25 -25
  107. package/src/utils.js +1 -1
@@ -28,3 +28,11 @@ msgstr "連續繪製"
28
28
  msgctxt "The tooltip displayed for the continuous painting button explaining what it does."
29
29
  msgid "Keeps the painter on after setting the formatting."
30
30
  msgstr "設定格式後,保持繪圖工具開啟。"
31
+
32
+ msgctxt "A message read out by assistive technologies the moment the formatting is copied by the user."
33
+ msgid "Formatting copied."
34
+ msgstr "已複製格式。"
35
+
36
+ msgctxt "A message read out by assistive technologies the moment the formatting is pasted by the user."
37
+ msgid "Pasted formatting."
38
+ msgstr "已貼上格式。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "40.0.0",
3
+ "version": "40.2.0",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "main": "src/index.js",
13
13
  "dependencies": {
14
- "ckeditor5": "40.0.0"
14
+ "ckeditor5": "40.2.0"
15
15
  },
16
16
  "license": "SEE LICENSE IN LICENSE.md",
17
17
  "author": "CKSource (http://cksource.com/)",
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import type { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from './index';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface PluginsMap {
8
- [FormatPainter.pluginName]: FormatPainter;
9
- [FormatPainterEditing.pluginName]: FormatPainterEditing;
10
- [FormatPainterUI.pluginName]: FormatPainterUI;
11
- }
12
- interface CommandsMap {
13
- [COPY_FORMAT_COMMAND_NAME]: CopyFormatCommand;
14
- [PASTE_FORMAT_COMMAND_NAME]: PasteFormatCommand;
15
- }
16
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [FormatPainter.pluginName]: FormatPainter;
9
+ [FormatPainterEditing.pluginName]: FormatPainterEditing;
10
+ [FormatPainterUI.pluginName]: FormatPainterUI;
11
+ }
12
+ interface CommandsMap {
13
+ [COPY_FORMAT_COMMAND_NAME]: CopyFormatCommand;
14
+ [PASTE_FORMAT_COMMAND_NAME]: PasteFormatCommand;
15
+ }
16
+ }
@@ -1,37 +1,37 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module format-painter/copyformatcommand
7
- * @publicApi
8
- */
9
- import { Command, type Editor } from 'ckeditor5/src/core';
10
- import type { FormattingAttributesValues } from './formatpainterediting';
11
- /**
12
- * This command copies the formatting from the current {@link module:engine/model/selection~Selection model selection}
13
- * and stores it in its {@link module:format-painter/copyformatcommand~CopyFormatCommand#value} property.
14
- *
15
- * The formatting can then be pasted using the {@link module:format-painter/pasteformatcommand~PasteFormatCommand}.
16
- *
17
- * @extends module:core/command~Command
18
- */
19
- export default class CopyFormatCommand extends Command {
20
- value: FormattingAttributesValues | undefined;
21
- /**
22
- * Creates a new `CopyFormatCommand` instance.
23
- *
24
- * @param {module:core/editor/editor~Editor} editor The editor on which this command will be used.
25
- */
26
- constructor(editor: Editor);
27
- /**
28
- * Executes the command. The formatting is then stored in the {@link #value} property.
29
- *
30
- * @fires execute
31
- */
32
- execute(): void;
33
- /**
34
- * Resets the stored formatting.
35
- */
36
- reset(): void;
37
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/copyformatcommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type { FormattingAttributesValues } from './formatpainterediting';
11
+ /**
12
+ * This command copies the formatting from the current {@link module:engine/model/selection~Selection model selection}
13
+ * and stores it in its {@link module:format-painter/copyformatcommand~CopyFormatCommand#value} property.
14
+ *
15
+ * The formatting can then be pasted using the {@link module:format-painter/pasteformatcommand~PasteFormatCommand}.
16
+ *
17
+ * @extends module:core/command~Command
18
+ */
19
+ export default class CopyFormatCommand extends Command {
20
+ value: FormattingAttributesValues | undefined;
21
+ /**
22
+ * Creates a new `CopyFormatCommand` instance.
23
+ *
24
+ * @param {module:core/editor/editor~Editor} editor The editor on which this command will be used.
25
+ */
26
+ constructor(editor: Editor);
27
+ /**
28
+ * Executes the command. The formatting is then stored in the {@link #value} property.
29
+ *
30
+ * @fires execute
31
+ */
32
+ execute(): void;
33
+ /**
34
+ * Resets the stored formatting.
35
+ */
36
+ reset(): void;
37
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1edc=['fromEntries','change:isEnabled','reset','document','schema','refresh','isFormatting','commands','getAttributes','from','value','model','change:value','_getFormattingAttributes','selection'];(function(_0x142137,_0x1edc6d){const _0x2cbfb3=function(_0x2ef5c4){while(--_0x2ef5c4){_0x142137['push'](_0x142137['shift']());}};_0x2cbfb3(++_0x1edc6d);}(_0x1edc,0xb8));const _0x2cbf=function(_0x142137,_0x1edc6d){_0x142137=_0x142137-0x0;let _0x2cbfb3=_0x1edc[_0x142137];return _0x2cbfb3;};import{Command as _0x5cf21f}from'ckeditor5/src/core';import{PASTE_FORMAT_COMMAND_NAME as _0x155c1d}from'./utils';export default class r extends _0x5cf21f{constructor(_0x3a60bc){super(_0x3a60bc),this[_0x2cbf('0x6')]=void 0x0,this['on'](_0x2cbf('0xc'),(_0x21f1e7,_0x325d81,_0x259628)=>{_0x259628||this['reset']();}),this['on'](_0x2cbf('0x8'),()=>_0x3a60bc[_0x2cbf('0x3')]['get'](_0x155c1d)[_0x2cbf('0x1')]());}['execute'](){this[_0x2cbf('0x6')]=this['_getFormattingAttributes']();}[_0x2cbf('0xd')](){this[_0x2cbf('0x6')]=void 0x0;}[_0x2cbf('0x9')](){const _0x6ba817=this['editor'][_0x2cbf('0x7')],_0x16336=_0x6ba817[_0x2cbf('0xe')][_0x2cbf('0xa')];return Object[_0x2cbf('0xb')](Array[_0x2cbf('0x5')](_0x16336[_0x2cbf('0x4')]())['filter'](([_0x3b3784])=>_0x6ba817[_0x2cbf('0x0')]['getAttributeProperties'](_0x3b3784)[_0x2cbf('0x2')]));}}
23
+ const _0x1052=['change:value','model','selection','document','schema','filter','refresh','from','getAttributes','fromEntries','change:isEnabled','getAttributeProperties','execute','_getFormattingAttributes','commands','editor','reset','value'];(function(_0x532f53,_0x1052e1){const _0x395c12=function(_0x4a07ee){while(--_0x4a07ee){_0x532f53['push'](_0x532f53['shift']());}};_0x395c12(++_0x1052e1);}(_0x1052,0x1c1));const _0x395c=function(_0x532f53,_0x1052e1){_0x532f53=_0x532f53-0x0;let _0x395c12=_0x1052[_0x532f53];return _0x395c12;};import{Command as _0x5de9f5}from'ckeditor5/src/core';import{PASTE_FORMAT_COMMAND_NAME as _0x7bd2df}from'./utils';export default class r extends _0x5de9f5{constructor(_0x393628){super(_0x393628),this[_0x395c('0x0')]=void 0x0,this['on'](_0x395c('0xb'),(_0x197823,_0x3aa892,_0x5afa25)=>{_0x5afa25||this[_0x395c('0x11')]();}),this['on'](_0x395c('0x1'),()=>_0x393628[_0x395c('0xf')]['get'](_0x7bd2df)[_0x395c('0x7')]());}[_0x395c('0xd')](){this[_0x395c('0x0')]=this[_0x395c('0xe')]();}['reset'](){this[_0x395c('0x0')]=void 0x0;}[_0x395c('0xe')](){const _0x292167=this[_0x395c('0x10')][_0x395c('0x2')],_0x562a28=_0x292167[_0x395c('0x4')][_0x395c('0x3')];return Object[_0x395c('0xa')](Array[_0x395c('0x8')](_0x562a28[_0x395c('0x9')]())[_0x395c('0x6')](([_0x5b487c])=>_0x292167[_0x395c('0x5')][_0x395c('0xc')](_0x5b487c)['isFormatting']));}}
@@ -1,28 +1,28 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module format-painter/formatpainter
7
- * @publicApi
8
- */
9
- import { Plugin } from 'ckeditor5/src/core';
10
- import FormatPainterEditing from './formatpainterediting';
11
- import FormatPainterUI from './formatpainterui';
12
- /**
13
- * The format painter feature.
14
- *
15
- * For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
16
- *
17
- * @extends module:core/plugin~Plugin
18
- */
19
- export default class FormatPainter extends Plugin {
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): readonly [typeof FormatPainterEditing, typeof FormatPainterUI];
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName(): "FormatPainter";
28
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/formatpainter
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core';
10
+ import FormatPainterEditing from './formatpainterediting';
11
+ import FormatPainterUI from './formatpainterui';
12
+ /**
13
+ * The format painter feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
16
+ *
17
+ * @extends module:core/plugin~Plugin
18
+ */
19
+ export default class FormatPainter extends Plugin {
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get requires(): readonly [typeof FormatPainterEditing, typeof FormatPainterUI];
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName(): "FormatPainter";
28
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x42d1=['requires','pluginName','FormatPainter'];(function(_0x2ffa0d,_0x42d134){var _0x1cd51b=function(_0x3aefd1){while(--_0x3aefd1){_0x2ffa0d['push'](_0x2ffa0d['shift']());}};_0x1cd51b(++_0x42d134);}(_0x42d1,0x12d));var _0x1cd5=function(_0x2ffa0d,_0x42d134){_0x2ffa0d=_0x2ffa0d-0x0;var _0x1cd51b=_0x42d1[_0x2ffa0d];return _0x1cd51b;};import{Plugin as _0x155043}from'ckeditor5/src/core';import _0x276f0f from'./formatpainterediting';import _0x2a3fd5 from'./formatpainterui';export default class m extends _0x155043{static get[_0x1cd5('0x2')](){return[_0x276f0f,_0x2a3fd5];}static get[_0x1cd5('0x0')](){return _0x1cd5('0x1');}}
23
+ var _0x2cc8=['pluginName','FormatPainter','requires'];(function(_0x3ba871,_0x2cc858){var _0x469170=function(_0x5dc65c){while(--_0x5dc65c){_0x3ba871['push'](_0x3ba871['shift']());}};_0x469170(++_0x2cc858);}(_0x2cc8,0x15e));var _0x4691=function(_0x3ba871,_0x2cc858){_0x3ba871=_0x3ba871-0x0;var _0x469170=_0x2cc8[_0x3ba871];return _0x469170;};import{Plugin as _0x5346a2}from'ckeditor5/src/core';import _0x2d70d2 from'./formatpainterediting';import _0x51e93b from'./formatpainterui';export default class m extends _0x5346a2{static get[_0x4691('0x0')](){return[_0x2d70d2,_0x51e93b];}static get[_0x4691('0x1')](){return _0x4691('0x2');}}
@@ -1,36 +1,36 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module format-painter/formatpainterediting
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
11
- */
12
- export default class FormatPainterEditing extends Plugin {
13
- licenseKey: string;
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "FormatPainterEditing";
18
- /**
19
- * @inheritDoc
20
- */
21
- constructor(editor: Editor);
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- /**
27
- * @inheritDoc
28
- */
29
- destroy(): void;
30
- }
31
- /**
32
- * An object with key-value pairs describing formatting model attributes and their values.
33
- */
34
- export type FormattingAttributesValues = {
35
- [k: string]: unknown;
36
- };
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/formatpainterediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
11
+ */
12
+ export default class FormatPainterEditing extends Plugin {
13
+ licenseKey: string;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "FormatPainterEditing";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ destroy(): void;
30
+ }
31
+ /**
32
+ * An object with key-value pairs describing formatting model attributes and their values.
33
+ */
34
+ export type FormattingAttributesValues = {
35
+ [k: string]: unknown;
36
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f0a=['info','formatPainterLicenseKeyValid','get','destroy','_licenseKeyCheckInterval','format-painter-trial-license-key-reached-limit-changes','FormatPainterEditing','licenseKey','format-painter-invalid-license-key','formatPainterLicenseKeyTrialLimit:operations','add','formatPainterLicenseKeyTrial','formatPainterLicenseKeyInvalid','editor','commands','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','config','pluginName'];(function(_0x2c0b68,_0x2f0a3e){const _0x192f56=function(_0x5f0c13){while(--_0x5f0c13){_0x2c0b68['push'](_0x2c0b68['shift']());}};_0x192f56(++_0x2f0a3e);}(_0x2f0a,0x11d));const _0x192f=function(_0x2c0b68,_0x2f0a3e){_0x2c0b68=_0x2c0b68-0x0;let _0x192f56=_0x2f0a[_0x2c0b68];return _0x192f56;};import{Plugin as _0x1eac01}from'ckeditor5/src/core';import{CKEditorError as _0x1e9a61}from'ckeditor5/src/utils';import _0x27b8d3 from'./copyformatcommand';import _0x1359f1 from'./pasteformatcommand';import{COPY_FORMAT_COMMAND_NAME as _0x11935b,PASTE_FORMAT_COMMAND_NAME as _0x13d493}from'./utils';export default class o extends _0x1eac01{static get[_0x192f('0x2')](){return _0x192f('0x9');}constructor(_0x22753e){super(_0x22753e),this[_0x192f('0x7')]=null;}['init'](){const _0x2da2ca=this[_0x192f('0x10')];_0x2da2ca[_0x192f('0x11')][_0x192f('0xd')](_0x11935b,new _0x27b8d3(_0x2da2ca)),_0x2da2ca[_0x192f('0x11')][_0x192f('0xd')](_0x13d493,new _0x1359f1(_0x2da2ca)),this[_0x192f('0xa')]=_0x2da2ca[_0x192f('0x1')][_0x192f('0x5')](_0x192f('0xa'));const _0x5432ee=this[_0x192f('0x10')];this[_0x192f('0x7')]=setInterval(()=>{let _0x563017;for(const _0x1d30b1 in _0x5432ee){const _0x23e675=_0x1d30b1,_0x3fba25=_0x5432ee[_0x23e675];if('formatPainterLicenseKeyTrial'===_0x3fba25||_0x192f('0xf')===_0x3fba25||'formatPainterLicenseKeyValid'===_0x3fba25||_0x192f('0xc')===_0x3fba25){delete _0x5432ee[_0x23e675],_0x563017=_0x3fba25;break;}}if('formatPainterLicenseKeyInvalid'===_0x563017)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1e9a61(_0x192f('0xb'),null);if(_0x192f('0xe')===_0x563017&&console[_0x192f('0x3')](_0x192f('0x0')),_0x192f('0xc')===_0x563017)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1e9a61(_0x192f('0x8'),null);_0x192f('0x4')===_0x563017&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x192f('0x6')](){this['_licenseKeyCheckInterval']&&clearInterval(this[_0x192f('0x7')]);}}
23
+ const _0x1023=['formatPainterLicenseKeyTrialLimit:operations','formatPainterLicenseKeyTrial','info','formatPainterLicenseKeyValid','pluginName','licenseKey','init','formatPainterLicenseKeyInvalid','FormatPainterEditing','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','format-painter-invalid-license-key','commands','add','_licenseKeyCheckInterval','config','editor','get'];(function(_0x1221fb,_0x1023d4){const _0x3ecea3=function(_0x48d1c1){while(--_0x48d1c1){_0x1221fb['push'](_0x1221fb['shift']());}};_0x3ecea3(++_0x1023d4);}(_0x1023,0xb0));const _0x3ece=function(_0x1221fb,_0x1023d4){_0x1221fb=_0x1221fb-0x0;let _0x3ecea3=_0x1023[_0x1221fb];return _0x3ecea3;};import{Plugin as _0x32179a}from'ckeditor5/src/core';import{CKEditorError as _0x5d6543}from'ckeditor5/src/utils';import _0x26d691 from'./copyformatcommand';import _0x24cf8c from'./pasteformatcommand';import{COPY_FORMAT_COMMAND_NAME as _0x2764c3,PASTE_FORMAT_COMMAND_NAME as _0x2933f5}from'./utils';export default class o extends _0x32179a{static get[_0x3ece('0xf')](){return _0x3ece('0x2');}constructor(_0x2977f3){super(_0x2977f3),this[_0x3ece('0x7')]=null;}[_0x3ece('0x0')](){const _0x103176=this[_0x3ece('0x9')];_0x103176[_0x3ece('0x5')]['add'](_0x2764c3,new _0x26d691(_0x103176)),_0x103176['commands'][_0x3ece('0x6')](_0x2933f5,new _0x24cf8c(_0x103176)),this[_0x3ece('0x10')]=_0x103176[_0x3ece('0x8')][_0x3ece('0xa')](_0x3ece('0x10'));const _0x4cbe76=this[_0x3ece('0x9')];this[_0x3ece('0x7')]=setInterval(()=>{let _0x340b30;for(const _0x26d8fa in _0x4cbe76){const _0x5d1023=_0x26d8fa,_0x3a03e7=_0x4cbe76[_0x5d1023];if(_0x3ece('0xc')===_0x3a03e7||_0x3ece('0x1')===_0x3a03e7||_0x3ece('0xe')===_0x3a03e7||_0x3ece('0xb')===_0x3a03e7){delete _0x4cbe76[_0x5d1023],_0x340b30=_0x3a03e7;break;}}if(_0x3ece('0x1')===_0x340b30)throw clearInterval(this[_0x3ece('0x7')]),new _0x5d6543(_0x3ece('0x4'),null);if(_0x3ece('0xc')===_0x340b30&&console[_0x3ece('0xd')](_0x3ece('0x3')),_0x3ece('0xb')===_0x340b30)throw clearInterval(this[_0x3ece('0x7')]),new _0x5d6543('format-painter-trial-license-key-reached-limit-changes',null);'formatPainterLicenseKeyValid'===_0x340b30&&clearInterval(this[_0x3ece('0x7')]);},0x3e8);}['destroy'](){this[_0x3ece('0x7')]&&clearInterval(this[_0x3ece('0x7')]);}}
@@ -1,32 +1,32 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module format-painter/formatpainterui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import '../theme/formatpainter.css';
10
- declare const FormatPainterUI_base: import("ckeditor5/src/utils").Mixed<typeof Plugin, import("ckeditor5/src/utils").DomEmitter>;
11
- /**
12
- * The format painter UI feature. It introduces the `formatPainter` dropdown with a "Continuous painting"
13
- * switch button.
14
- *
15
- * The first click on the dropdown button copies the formatting of the selected text.
16
- * Then the next click in the editor editable pastes the formatting.
17
- */
18
- export default class FormatPainterUI extends FormatPainterUI_base {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName(): "FormatPainterUI";
23
- /**
24
- * @inheritDoc
25
- */
26
- init(): void;
27
- /**
28
- * @inheritDoc
29
- */
30
- afterInit(): void;
31
- }
32
- export {};
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/formatpainterui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../theme/formatpainter.css';
10
+ declare const FormatPainterUI_base: import("ckeditor5/src/utils").Mixed<typeof Plugin, import("ckeditor5/src/utils").DomEmitter>;
11
+ /**
12
+ * The format painter UI feature. It introduces the `formatPainter` dropdown with a "Continuous painting"
13
+ * switch button.
14
+ *
15
+ * The first click on the dropdown button copies the formatting of the selected text.
16
+ * Then the next click in the editor editable pastes the formatting.
17
+ */
18
+ export default class FormatPainterUI extends FormatPainterUI_base {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName(): "FormatPainterUI";
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init(): void;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ afterInit(): void;
31
+ }
32
+ export {};