@ckeditor/ckeditor5-format-painter 39.0.1 → 40.0.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 (63) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +7 -7
  3. package/build/format-painter.js +1 -1
  4. package/lang/translations/ar.po +1 -0
  5. package/lang/translations/bg.po +1 -0
  6. package/lang/translations/bn.po +1 -0
  7. package/lang/translations/ca.po +1 -0
  8. package/lang/translations/cs.po +1 -0
  9. package/lang/translations/da.po +1 -0
  10. package/lang/translations/de.po +1 -0
  11. package/lang/translations/el.po +1 -0
  12. package/lang/translations/en-au.po +1 -0
  13. package/lang/translations/en.po +1 -0
  14. package/lang/translations/es.po +1 -0
  15. package/lang/translations/et.po +1 -0
  16. package/lang/translations/fi.po +1 -0
  17. package/lang/translations/fr.po +1 -0
  18. package/lang/translations/gl.po +1 -0
  19. package/lang/translations/he.po +1 -0
  20. package/lang/translations/hi.po +1 -0
  21. package/lang/translations/hr.po +1 -0
  22. package/lang/translations/hu.po +1 -0
  23. package/lang/translations/id.po +1 -0
  24. package/lang/translations/it.po +1 -0
  25. package/lang/translations/ja.po +1 -0
  26. package/lang/translations/ko.po +1 -0
  27. package/lang/translations/lt.po +1 -0
  28. package/lang/translations/lv.po +1 -0
  29. package/lang/translations/ms.po +1 -0
  30. package/lang/translations/nl.po +1 -0
  31. package/lang/translations/no.po +1 -0
  32. package/lang/translations/pl.po +1 -0
  33. package/lang/translations/pt-br.po +1 -0
  34. package/lang/translations/pt.po +1 -0
  35. package/lang/translations/ro.po +1 -0
  36. package/lang/translations/ru.po +1 -0
  37. package/lang/translations/sk.po +1 -0
  38. package/lang/translations/sr.po +1 -0
  39. package/lang/translations/sv.po +1 -0
  40. package/lang/translations/th.po +1 -0
  41. package/lang/translations/tr.po +1 -0
  42. package/lang/translations/ug.po +1 -0
  43. package/lang/translations/uk.po +1 -0
  44. package/lang/translations/vi.po +1 -0
  45. package/lang/translations/zh-cn.po +1 -0
  46. package/lang/translations/zh.po +1 -0
  47. package/package.json +2 -6
  48. package/src/augmentation.d.ts +16 -16
  49. package/src/copyformatcommand.d.ts +37 -37
  50. package/src/copyformatcommand.js +1 -1
  51. package/src/formatpainter.d.ts +28 -28
  52. package/src/formatpainter.js +1 -1
  53. package/src/formatpainterediting.d.ts +36 -36
  54. package/src/formatpainterediting.js +1 -1
  55. package/src/formatpainterui.d.ts +32 -32
  56. package/src/formatpainterui.js +1 -1
  57. package/src/index.d.ts +14 -14
  58. package/src/index.js +1 -1
  59. package/src/pasteformatcommand.d.ts +23 -23
  60. package/src/pasteformatcommand.js +1 -1
  61. package/src/utils.d.ts +25 -25
  62. package/src/utils.js +1 -1
  63. package/theme/formatpainter.css +4 -0
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
16
16
  "Language: pt\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
16
16
  "Language: ro\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
16
16
  "Language: ru\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
16
  "Language: sk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
16
  "Language: sr\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
16
  "Language: sv\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
16
  "Language: th\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
16
  "Language: tr\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
16
16
  "Language: ug\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
16
  "Language: uk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
16
  "Language: vi\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
16
  "Language: zh_CN\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
16
  "Language: zh_TW\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "A toolbar button tooltip for the format painter feature."
20
21
  msgid "Paint formatting"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "39.0.1",
3
+ "version": "40.0.0",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,11 +11,7 @@
11
11
  ],
12
12
  "main": "src/index.js",
13
13
  "dependencies": {
14
- "ckeditor5": "39.0.1"
15
- },
16
- "engines": {
17
- "node": ">=16.0.0",
18
- "npm": ">=5.7.1"
14
+ "ckeditor5": "40.0.0"
19
15
  },
20
16
  "license": "SEE LICENSE IN LICENSE.md",
21
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 _0x4067=['fromEntries','execute','get','document','isFormatting','commands','schema','getAttributeProperties','from','change:isEnabled','filter','reset','getAttributes','value','_getFormattingAttributes'];(function(_0x46cb12,_0x406771){const _0x28f23a=function(_0xda8ffb){while(--_0xda8ffb){_0x46cb12['push'](_0x46cb12['shift']());}};_0x28f23a(++_0x406771);}(_0x4067,0x18d));const _0x28f2=function(_0x46cb12,_0x406771){_0x46cb12=_0x46cb12-0x0;let _0x28f23a=_0x4067[_0x46cb12];return _0x28f23a;};import{Command as _0x1884df}from'ckeditor5/src/core';import{PASTE_FORMAT_COMMAND_NAME as _0x3f6a45}from'./utils';export default class r extends _0x1884df{constructor(_0x59e0ed){super(_0x59e0ed),this[_0x28f2('0x6')]=void 0x0,this['on'](_0x28f2('0x2'),(_0x5746e2,_0x43cfe8,_0x52c3d4)=>{_0x52c3d4||this['reset']();}),this['on']('change:value',()=>_0x59e0ed[_0x28f2('0xd')][_0x28f2('0xa')](_0x3f6a45)['refresh']());}[_0x28f2('0x9')](){this['value']=this['_getFormattingAttributes']();}[_0x28f2('0x4')](){this['value']=void 0x0;}[_0x28f2('0x7')](){const _0x483555=this['editor']['model'],_0x1d70f7=_0x483555[_0x28f2('0xb')]['selection'];return Object[_0x28f2('0x8')](Array[_0x28f2('0x1')](_0x1d70f7[_0x28f2('0x5')]())[_0x28f2('0x3')](([_0x1d97b6])=>_0x483555[_0x28f2('0xe')][_0x28f2('0x0')](_0x1d97b6)[_0x28f2('0xc')]));}}
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')]));}}
@@ -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 _0x4630=['pluginName','requires'];(function(_0x3ebd54,_0x4630fb){var _0x143d35=function(_0x24a75e){while(--_0x24a75e){_0x3ebd54['push'](_0x3ebd54['shift']());}};_0x143d35(++_0x4630fb);}(_0x4630,0x16b));var _0x143d=function(_0x3ebd54,_0x4630fb){_0x3ebd54=_0x3ebd54-0x0;var _0x143d35=_0x4630[_0x3ebd54];return _0x143d35;};import{Plugin as _0x1fe6ed}from'ckeditor5/src/core';import _0x28576 from'./formatpainterediting';import _0x32d93f from'./formatpainterui';export default class m extends _0x1fe6ed{static get[_0x143d('0x0')](){return[_0x28576,_0x32d93f];}static get[_0x143d('0x1')](){return'FormatPainter';}}
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');}}
@@ -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 _0x4309=['_licenseKeyCheckInterval','formatPainterLicenseKeyValid','formatPainterLicenseKeyTrial','licenseKey','format-painter-trial-license-key-reached-limit-changes','destroy','editor','formatPainterLicenseKeyTrialLimit:operations','get','format-painter-invalid-license-key','add','formatPainterLicenseKeyInvalid','pluginName','commands','FormatPainterEditing'];(function(_0x4baae3,_0x43094b){const _0x446abd=function(_0x550f19){while(--_0x550f19){_0x4baae3['push'](_0x4baae3['shift']());}};_0x446abd(++_0x43094b);}(_0x4309,0x1a2));const _0x446a=function(_0x4baae3,_0x43094b){_0x4baae3=_0x4baae3-0x0;let _0x446abd=_0x4309[_0x4baae3];return _0x446abd;};import{Plugin as _0x32be8e}from'ckeditor5/src/core';import{CKEditorError as _0x4dc002}from'ckeditor5/src/utils';import _0x13416e from'./copyformatcommand';import _0x102cef from'./pasteformatcommand';import{COPY_FORMAT_COMMAND_NAME as _0x188b16,PASTE_FORMAT_COMMAND_NAME as _0x526f64}from'./utils';export default class o extends _0x32be8e{static get[_0x446a('0xe')](){return _0x446a('0x1');}constructor(_0x5984e3){super(_0x5984e3),this[_0x446a('0x2')]=null;}['init'](){const _0x55a510=this[_0x446a('0x8')];_0x55a510[_0x446a('0x0')][_0x446a('0xc')](_0x188b16,new _0x13416e(_0x55a510)),_0x55a510[_0x446a('0x0')]['add'](_0x526f64,new _0x102cef(_0x55a510)),this['licenseKey']=_0x55a510['config'][_0x446a('0xa')](_0x446a('0x5'));const _0x22d0de=this['editor'];this[_0x446a('0x2')]=setInterval(()=>{let _0x1ca1ec;for(const _0x503ccb in _0x22d0de){const _0x32b49d=_0x503ccb,_0x512cc0=_0x22d0de[_0x32b49d];if('formatPainterLicenseKeyTrial'===_0x512cc0||_0x446a('0xd')===_0x512cc0||_0x446a('0x3')===_0x512cc0||_0x446a('0x9')===_0x512cc0){delete _0x22d0de[_0x32b49d],_0x1ca1ec=_0x512cc0;break;}}if('formatPainterLicenseKeyInvalid'===_0x1ca1ec)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4dc002(_0x446a('0xb'),null);if(_0x446a('0x4')===_0x1ca1ec&&console['info']('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.'),_0x446a('0x9')===_0x1ca1ec)throw clearInterval(this[_0x446a('0x2')]),new _0x4dc002(_0x446a('0x6'),null);_0x446a('0x3')===_0x1ca1ec&&clearInterval(this[_0x446a('0x2')]);},0x3e8);}[_0x446a('0x7')](){this[_0x446a('0x2')]&&clearInterval(this[_0x446a('0x2')]);}}
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')]);}}
@@ -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 {};