@ckeditor/ckeditor5-format-painter 41.2.0 → 41.3.0-alpha.2

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 (109) hide show
  1. package/build/format-painter.js +1 -1
  2. package/build/format-painter.js.map +1 -0
  3. package/dist/content-index.css +332 -0
  4. package/dist/editor-index.css +315 -0
  5. package/dist/index.css +980 -0
  6. package/dist/translations/ar.d.ts +8 -0
  7. package/dist/translations/ar.js +23 -0
  8. package/dist/translations/bg.d.ts +8 -0
  9. package/dist/translations/bg.js +23 -0
  10. package/dist/translations/bn.d.ts +8 -0
  11. package/dist/translations/bn.js +23 -0
  12. package/dist/translations/ca.d.ts +8 -0
  13. package/dist/translations/ca.js +23 -0
  14. package/dist/translations/cs.d.ts +8 -0
  15. package/dist/translations/cs.js +23 -0
  16. package/dist/translations/da.d.ts +8 -0
  17. package/dist/translations/da.js +23 -0
  18. package/dist/translations/de.d.ts +8 -0
  19. package/dist/translations/de.js +23 -0
  20. package/dist/translations/el.d.ts +8 -0
  21. package/dist/translations/el.js +23 -0
  22. package/dist/translations/en-au.d.ts +8 -0
  23. package/dist/translations/en-au.js +23 -0
  24. package/dist/translations/en.d.ts +8 -0
  25. package/dist/translations/en.js +23 -0
  26. package/dist/translations/es.d.ts +8 -0
  27. package/dist/translations/es.js +23 -0
  28. package/dist/translations/et.d.ts +8 -0
  29. package/dist/translations/et.js +23 -0
  30. package/dist/translations/fi.d.ts +8 -0
  31. package/dist/translations/fi.js +23 -0
  32. package/dist/translations/fr.d.ts +8 -0
  33. package/dist/translations/fr.js +23 -0
  34. package/dist/translations/gl.d.ts +8 -0
  35. package/dist/translations/gl.js +23 -0
  36. package/dist/translations/he.d.ts +8 -0
  37. package/dist/translations/he.js +23 -0
  38. package/dist/translations/hi.d.ts +8 -0
  39. package/dist/translations/hi.js +23 -0
  40. package/dist/translations/hr.d.ts +8 -0
  41. package/dist/translations/hr.js +23 -0
  42. package/dist/translations/hu.d.ts +8 -0
  43. package/dist/translations/hu.js +23 -0
  44. package/dist/translations/id.d.ts +8 -0
  45. package/dist/translations/id.js +23 -0
  46. package/dist/translations/it.d.ts +8 -0
  47. package/dist/translations/it.js +23 -0
  48. package/dist/translations/ja.d.ts +8 -0
  49. package/dist/translations/ja.js +23 -0
  50. package/dist/translations/ko.d.ts +8 -0
  51. package/dist/translations/ko.js +23 -0
  52. package/dist/translations/lt.d.ts +8 -0
  53. package/dist/translations/lt.js +23 -0
  54. package/dist/translations/lv.d.ts +8 -0
  55. package/dist/translations/lv.js +23 -0
  56. package/dist/translations/ms.d.ts +8 -0
  57. package/dist/translations/ms.js +23 -0
  58. package/dist/translations/nl.d.ts +8 -0
  59. package/dist/translations/nl.js +23 -0
  60. package/dist/translations/no.d.ts +8 -0
  61. package/dist/translations/no.js +23 -0
  62. package/dist/translations/pl.d.ts +8 -0
  63. package/dist/translations/pl.js +23 -0
  64. package/dist/translations/pt-br.d.ts +8 -0
  65. package/dist/translations/pt-br.js +23 -0
  66. package/dist/translations/pt.d.ts +8 -0
  67. package/dist/translations/pt.js +23 -0
  68. package/dist/translations/ro.d.ts +8 -0
  69. package/dist/translations/ro.js +23 -0
  70. package/dist/translations/ru.d.ts +8 -0
  71. package/dist/translations/ru.js +23 -0
  72. package/dist/translations/sk.d.ts +8 -0
  73. package/dist/translations/sk.js +23 -0
  74. package/dist/translations/sr-latn.d.ts +8 -0
  75. package/dist/translations/sr-latn.js +23 -0
  76. package/dist/translations/sr.d.ts +8 -0
  77. package/dist/translations/sr.js +23 -0
  78. package/dist/translations/sv.d.ts +8 -0
  79. package/dist/translations/sv.js +23 -0
  80. package/dist/translations/th.d.ts +8 -0
  81. package/dist/translations/th.js +23 -0
  82. package/dist/translations/tr.d.ts +8 -0
  83. package/dist/translations/tr.js +23 -0
  84. package/dist/translations/ug.d.ts +8 -0
  85. package/dist/translations/ug.js +23 -0
  86. package/dist/translations/uk.d.ts +8 -0
  87. package/dist/translations/uk.js +23 -0
  88. package/dist/translations/vi.d.ts +8 -0
  89. package/dist/translations/vi.js +23 -0
  90. package/dist/translations/zh-cn.d.ts +8 -0
  91. package/dist/translations/zh-cn.js +23 -0
  92. package/dist/translations/zh.d.ts +8 -0
  93. package/dist/translations/zh.js +23 -0
  94. package/dist/types/augmentation.d.ts +20 -0
  95. package/dist/types/copyformatcommand.d.ts +41 -0
  96. package/dist/types/formatpainter.d.ts +32 -0
  97. package/dist/types/formatpainterediting.d.ts +40 -0
  98. package/dist/types/formatpainterui.d.ts +36 -0
  99. package/dist/types/index.d.ts +18 -0
  100. package/dist/types/pasteformatcommand.d.ts +27 -0
  101. package/dist/types/utils.d.ts +29 -0
  102. package/package.json +4 -3
  103. package/src/copyformatcommand.js +1 -1
  104. package/src/formatpainter.js +1 -1
  105. package/src/formatpainterediting.js +1 -1
  106. package/src/formatpainterui.js +1 -1
  107. package/src/index.js +1 -1
  108. package/src/pasteformatcommand.js +1 -1
  109. package/src/utils.js +1 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'sr':{'dictionary':{'Paint\x20formatting':'Formatiranje\x20boje','Continuous\x20painting':'Kontinuirano\x20slikanje','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'Ostavlja\x20četkicu\x20uključenom\x20nakon\x20podešavanja\x20formatiranja.','Formatting\x20copied.':'Formatiranje\x20je\x20kopirano.','Pasted\x20formatting.':'Formatiranje\x20je\x20nalepljeno.'},'getPluralForm':_0x2b39bb=>_0x2b39bb%0xa==0x1&&_0x2b39bb%0x64!=0xb?0x0:_0x2b39bb%0xa>=0x2&&_0x2b39bb%0xa<=0x4&&(_0x2b39bb%0x64<0xa||_0x2b39bb%0x64>=0x14)?0x1:0x2}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'sv':{'dictionary':{'Paint\x20formatting':'Formatering\x20av\x20färgläggning','Continuous\x20painting':'Fortlöpande\x20målning','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'Behåller\x20målaren\x20på\x20efter\x20att\x20formateringen\x20har\x20satts.','Formatting\x20copied.':'Formateringen\x20har\x20kopierats.','Pasted\x20formatting.':'Inklistrad\x20formatering.'},'getPluralForm':_0x5d767e=>0x1!=_0x5d767e}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'th':{'dictionary':{'Paint\x20formatting':'ระบายการจัดรูป','Continuous\x20painting':'การระบายอย่างต่อเนื่อง','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'เก็บเครื่องมือระบายไว้หลังจากตั้งค่าการจัดรูปแบบแล้ว','Formatting\x20copied.':'คัดลอกการจัดรูปแบบแล้ว','Pasted\x20formatting.':'วางการจัดรูปแบบแล้ว'},'getPluralForm':_0xa4baeb=>0x0}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'tr':{'dictionary':{'Paint\x20formatting':'Boya\x20biçimlendirme','Continuous\x20painting':'Sürekli\x20boyama','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'Biçimlendirmeyi\x20ayarladıktan\x20sonra\x20boyacıyı\x20açık\x20tutar.','Formatting\x20copied.':'Biçimlendirme\x20kopyalandı.','Pasted\x20formatting.':'Biçimlendirme\x20yapıştırıldı.'},'getPluralForm':_0x52535c=>_0x52535c>0x1}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'ug':{'dictionary':{'Paint\x20formatting':'سىزما\x20پىچىمى','Continuous\x20painting':'سىزما\x20داۋاملاشتۇرۇش','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'پىچىم\x20تەڭشەلگەندىن\x20كېيىن\x20رەسسامنىڭ\x20ھالىتىنى\x20ساقلاپ\x20قالىدۇ.','Formatting\x20copied.':'','Pasted\x20formatting.':''},'getPluralForm':_0x29d6cc=>0x1!=_0x29d6cc}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'uk':{'dictionary':{'Paint\x20formatting':'Художнє\x20форматування','Continuous\x20painting':'Постійне\x20малювання','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'Тримає\x20малювання\x20ввімкненим\x20після\x20налаштування\x20форматування.','Formatting\x20copied.':'Форматування\x20скопійоване.','Pasted\x20formatting.':'Форматування\x20вставлене.'},'getPluralForm':_0x4e3f2f=>_0x4e3f2f%0x1==0x0&&_0x4e3f2f%0xa==0x1&&_0x4e3f2f%0x64!=0xb?0x0:_0x4e3f2f%0x1==0x0&&_0x4e3f2f%0xa>=0x2&&_0x4e3f2f%0xa<=0x4&&(_0x4e3f2f%0x64<0xc||_0x4e3f2f%0x64>0xe)?0x1:_0x4e3f2f%0x1==0x0&&(_0x4e3f2f%0xa==0x0||_0x4e3f2f%0xa>=0x5&&_0x4e3f2f%0xa<=0x9||_0x4e3f2f%0x64>=0xb&&_0x4e3f2f%0x64<=0xe)?0x2:0x3}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'vi':{'dictionary':{'Paint\x20formatting':'Sao\x20chép\x20định\x20dạng','Continuous\x20painting':'Tô\x20màu\x20liên\x20tục','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'Giữ\x20trình\x20tô\x20màu\x20được\x20bật\x20sau\x20khi\x20đặt\x20định\x20dạng.','Formatting\x20copied.':'Đã\x20sao\x20chép\x20định\x20dạng.','Pasted\x20formatting.':'Đã\x20dán\x20định\x20dạng.'},'getPluralForm':_0x48a43a=>0x0}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh-cn':{'dictionary':{'Paint\x20formatting':'绘画格式化','Continuous\x20painting':'连续绘画','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'设置格式化后,保持画师的状态。','Formatting\x20copied.':'格式已复制。','Pasted\x20formatting.':'已粘贴格式。'},'getPluralForm':_0xa671d3=>0x0}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'zh':{'dictionary':{'Paint\x20formatting':'油漆格式','Continuous\x20painting':'連續繪製','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'設定格式後,保持繪圖工具開啟。','Formatting\x20copied.':'已複製格式。','Pasted\x20formatting.':'已貼上格式。'},'getPluralForm':_0xf4dd5b=>0x0}};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import type { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from './index.js';
10
+ declare module '@ckeditor/ckeditor5-core' {
11
+ interface PluginsMap {
12
+ [FormatPainter.pluginName]: FormatPainter;
13
+ [FormatPainterEditing.pluginName]: FormatPainterEditing;
14
+ [FormatPainterUI.pluginName]: FormatPainterUI;
15
+ }
16
+ interface CommandsMap {
17
+ [COPY_FORMAT_COMMAND_NAME]: CopyFormatCommand;
18
+ [PASTE_FORMAT_COMMAND_NAME]: PasteFormatCommand;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter/copyformatcommand
11
+ * @publicApi
12
+ */
13
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
14
+ import type { FormattingAttributesValues } from './formatpainterediting.js';
15
+ /**
16
+ * This command copies the formatting from the current {@link module:engine/model/selection~Selection model selection}
17
+ * and stores it in its {@link module:format-painter/copyformatcommand~CopyFormatCommand#value} property.
18
+ *
19
+ * The formatting can then be pasted using the {@link module:format-painter/pasteformatcommand~PasteFormatCommand}.
20
+ *
21
+ * @extends module:core/command~Command
22
+ */
23
+ export default class CopyFormatCommand extends Command {
24
+ value: FormattingAttributesValues | undefined;
25
+ /**
26
+ * Creates a new `CopyFormatCommand` instance.
27
+ *
28
+ * @param {module:core/editor/editor~Editor} editor The editor on which this command will be used.
29
+ */
30
+ constructor(editor: Editor);
31
+ /**
32
+ * Executes the command. The formatting is then stored in the {@link #value} property.
33
+ *
34
+ * @fires execute
35
+ */
36
+ execute(): void;
37
+ /**
38
+ * Resets the stored formatting.
39
+ */
40
+ reset(): void;
41
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter/formatpainter
11
+ * @publicApi
12
+ */
13
+ import { Plugin } from 'ckeditor5/src/core.js';
14
+ import FormatPainterEditing from './formatpainterediting.js';
15
+ import FormatPainterUI from './formatpainterui.js';
16
+ /**
17
+ * The format painter feature.
18
+ *
19
+ * For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
20
+ *
21
+ * @extends module:core/plugin~Plugin
22
+ */
23
+ export default class FormatPainter extends Plugin {
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get requires(): readonly [typeof FormatPainterEditing, typeof FormatPainterUI];
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get pluginName(): "FormatPainter";
32
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter/formatpainterediting
11
+ */
12
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
13
+ /**
14
+ * The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
15
+ */
16
+ export default class FormatPainterEditing extends Plugin {
17
+ licenseKey: string;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "FormatPainterEditing";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(editor: Editor);
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ destroy(): void;
34
+ }
35
+ /**
36
+ * An object with key-value pairs describing formatting model attributes and their values.
37
+ */
38
+ export type FormattingAttributesValues = {
39
+ [k: string]: unknown;
40
+ };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter/formatpainterui
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import '../theme/formatpainter.css';
14
+ declare const FormatPainterUI_base: import("ckeditor5/src/utils.js").Mixed<typeof Plugin, import("ckeditor5/src/utils.js").DomEmitter>;
15
+ /**
16
+ * The format painter UI feature. It introduces the `formatPainter` dropdown with a "Continuous painting"
17
+ * switch button.
18
+ *
19
+ * The first click on the dropdown button copies the formatting of the selected text.
20
+ * Then the next click in the editor editable pastes the formatting.
21
+ */
22
+ export default class FormatPainterUI extends FormatPainterUI_base {
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get pluginName(): "FormatPainterUI";
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ init(): void;
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ afterInit(): void;
35
+ }
36
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter
11
+ */
12
+ export { type COPY_FORMAT_COMMAND_NAME, type PASTE_FORMAT_COMMAND_NAME } from './utils.js';
13
+ export { default as FormatPainter } from './formatpainter.js';
14
+ export { default as FormatPainterEditing, type FormattingAttributesValues } from './formatpainterediting.js';
15
+ export { default as FormatPainterUI } from './formatpainterui.js';
16
+ export { default as PasteFormatCommand } from './pasteformatcommand.js';
17
+ export { default as CopyFormatCommand } from './copyformatcommand.js';
18
+ import './augmentation.js';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { FormattingAttributesValues } from './formatpainterediting.js';
11
+ /**
12
+ * The command allows to paste the formatting onto the current {@link module:engine/model/selection~Selection model selection}.
13
+ *
14
+ * @extends module:core/command~Command
15
+ */
16
+ export default class PasteFormatCommand extends Command {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ constructor(editor: Editor);
21
+ /**
22
+ * Executes the command.
23
+ *
24
+ * @fires execute
25
+ */
26
+ execute(formattingToSet?: FormattingAttributesValues | undefined): void;
27
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module format-painter/utils
11
+ */
12
+ /**
13
+ * The name of the {@link module:format-painter/copyformatcommand~CopyFormatCommand} registered in the editor's command collection.
14
+ *
15
+ * @protected
16
+ */
17
+ export declare const COPY_FORMAT_COMMAND_NAME = "copyFormat";
18
+ /**
19
+ * The name of the {@link module:format-painter/pasteformatcommand~PasteFormatCommand} registered in the editor's command collection.
20
+ *
21
+ * @protected
22
+ */
23
+ export declare const PASTE_FORMAT_COMMAND_NAME = "pasteFormat";
24
+ /**
25
+ * The CSS class set on the editing roots during format painting by the {@link module:format-painter/formatpainterui~FormatPainterUI}.
26
+ *
27
+ * @protected
28
+ */
29
+ export declare const CURSOR_ACTIVE_CSS_CLASS = "ck-format-painter-active";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "41.2.0",
3
+ "version": "41.3.0-alpha.2",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,14 +12,15 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "41.2.0",
16
- "ckeditor5-collaboration": "41.2.0"
15
+ "ckeditor5": "41.3.0-alpha.2",
16
+ "ckeditor5-collaboration": "41.3.0-alpha.2"
17
17
  },
18
18
  "license": "SEE LICENSE IN LICENSE.md",
19
19
  "author": "CKSource (http://cksource.com/)",
20
20
  "homepage": "https://ckeditor.com/ckeditor-5",
21
21
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
22
22
  "files": [
23
+ "dist",
23
24
  "lang",
24
25
  "src/**/*.js",
25
26
  "src/**/*.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ecf1e=_0x43c5;(function(_0x35e34f,_0x5f4fce){const _0x35eb86=_0x43c5,_0xdec16e=_0x35e34f();while(!![]){try{const _0x1e2ed7=parseInt(_0x35eb86(0xe8))/0x1*(parseInt(_0x35eb86(0xe7))/0x2)+-parseInt(_0x35eb86(0xeb))/0x3+-parseInt(_0x35eb86(0xe4))/0x4+parseInt(_0x35eb86(0xf8))/0x5*(-parseInt(_0x35eb86(0xe3))/0x6)+-parseInt(_0x35eb86(0xfd))/0x7*(-parseInt(_0x35eb86(0xe6))/0x8)+-parseInt(_0x35eb86(0xec))/0x9*(parseInt(_0x35eb86(0xfc))/0xa)+parseInt(_0x35eb86(0xf6))/0xb;if(_0x1e2ed7===_0x5f4fce)break;else _0xdec16e['push'](_0xdec16e['shift']());}catch(_0xe434ac){_0xdec16e['push'](_0xdec16e['shift']());}}}(_0x3757,0x9b225));function _0x3757(){const _0x49b2a0=['21509soutAY','selection','get','3053871WwbFyq','1882719dHyVDt','refresh','model','getAttributes','value','_getFormattingAttributes','from','schema','isFormatting','change:isEnabled','33240130GmLBXj','editor','5IwlLAG','fromEntries','filter','commands','50VyAGGN','628418DLXjYX','document','execute','reset','getAttributeProperties','161298CgdZyh','1713592micAVf','change:value','8aGsswC','4ozsigl'];_0x3757=function(){return _0x49b2a0;};return _0x3757();}function _0x43c5(_0x4f48c3,_0x23a38b){const _0x3757d6=_0x3757();return _0x43c5=function(_0x43c555,_0x30ec31){_0x43c555=_0x43c555-0xdf;let _0x3f3ca9=_0x3757d6[_0x43c555];return _0x3f3ca9;},_0x43c5(_0x4f48c3,_0x23a38b);}import{Command as _0x8d78b7}from'ckeditor5/src/core.js';import{PASTE_FORMAT_COMMAND_NAME as _0x5208e2}from'./utils.js';export default class r extends _0x8d78b7{constructor(_0x111ecc){const _0x34e4e2=_0x43c5;super(_0x111ecc),this[_0x34e4e2(0xf0)]=void 0x0,this['on'](_0x34e4e2(0xf5),(_0x1ca586,_0x49fc14,_0x331128)=>{const _0x34a1cc=_0x34e4e2;_0x331128||this[_0x34a1cc(0xe1)]();}),this['on'](_0x34e4e2(0xe5),()=>_0x111ecc[_0x34e4e2(0xfb)][_0x34e4e2(0xea)](_0x5208e2)[_0x34e4e2(0xed)]());}[_0x2ecf1e(0xe0)](){const _0xdb51da=_0x2ecf1e;this[_0xdb51da(0xf0)]=this[_0xdb51da(0xf1)]();}[_0x2ecf1e(0xe1)](){const _0x4ab5f0=_0x2ecf1e;this[_0x4ab5f0(0xf0)]=void 0x0;}[_0x2ecf1e(0xf1)](){const _0x5730e3=_0x2ecf1e,_0x56cb12=this[_0x5730e3(0xf7)][_0x5730e3(0xee)],_0x4b812e=_0x56cb12[_0x5730e3(0xdf)][_0x5730e3(0xe9)];return Object[_0x5730e3(0xf9)](Array[_0x5730e3(0xf2)](_0x4b812e[_0x5730e3(0xef)]())[_0x5730e3(0xfa)](([_0x44e1e7])=>_0x56cb12[_0x5730e3(0xf3)][_0x5730e3(0xe2)](_0x44e1e7)[_0x5730e3(0xf4)]));}}
23
+ function _0x408f(){const _0x549be1=['schema','get','fromEntries','693mqWkiJ','document','748wMErWR','getAttributeProperties','getAttributes','reset','9348OtqkMr','8blnlPQ','commands','1757GZgLOL','27410CrQyEH','isFormatting','3202137pfTusu','from','execute','_getFormattingAttributes','selection','2446765nXaGFE','209361coENkP','refresh','1167000ELvVkl','filter','model','editor','5071BFIDbJ','change:isEnabled','change:value','value'];_0x408f=function(){return _0x549be1;};return _0x408f();}function _0x48aa(_0x20476e,_0x359e8e){const _0x408fce=_0x408f();return _0x48aa=function(_0x48aafc,_0x481c6f){_0x48aafc=_0x48aafc-0x1bc;let _0xae8fe2=_0x408fce[_0x48aafc];return _0xae8fe2;},_0x48aa(_0x20476e,_0x359e8e);}const _0x597371=_0x48aa;(function(_0x44ee6e,_0x4ad212){const _0x29f846=_0x48aa,_0x130c5=_0x44ee6e();while(!![]){try{const _0xd48699=-parseInt(_0x29f846(0x1c9))/0x1*(parseInt(_0x29f846(0x1c2))/0x2)+parseInt(_0x29f846(0x1d2))/0x3+-parseInt(_0x29f846(0x1d4))/0x4+parseInt(_0x29f846(0x1d1))/0x5+-parseInt(_0x29f846(0x1c6))/0x6*(parseInt(_0x29f846(0x1c0))/0x7)+-parseInt(_0x29f846(0x1c7))/0x8*(parseInt(_0x29f846(0x1cc))/0x9)+parseInt(_0x29f846(0x1ca))/0xa*(parseInt(_0x29f846(0x1d8))/0xb);if(_0xd48699===_0x4ad212)break;else _0x130c5['push'](_0x130c5['shift']());}catch(_0x5b0ab2){_0x130c5['push'](_0x130c5['shift']());}}}(_0x408f,0x58d3e));import{Command as _0xfc45ff}from'ckeditor5/src/core.js';import{PASTE_FORMAT_COMMAND_NAME as _0x1269f0}from'./utils.js';export default class r extends _0xfc45ff{constructor(_0x5efb17){const _0x5eac3b=_0x48aa;super(_0x5efb17),this[_0x5eac3b(0x1bc)]=void 0x0,this['on'](_0x5eac3b(0x1d9),(_0x3e502d,_0x48bb90,_0x28a3a7)=>{const _0x43c327=_0x5eac3b;_0x28a3a7||this[_0x43c327(0x1c5)]();}),this['on'](_0x5eac3b(0x1da),()=>_0x5efb17[_0x5eac3b(0x1c8)][_0x5eac3b(0x1be)](_0x1269f0)[_0x5eac3b(0x1d3)]());}[_0x597371(0x1ce)](){const _0x228e39=_0x597371;this[_0x228e39(0x1bc)]=this[_0x228e39(0x1cf)]();}[_0x597371(0x1c5)](){const _0x1328a8=_0x597371;this[_0x1328a8(0x1bc)]=void 0x0;}[_0x597371(0x1cf)](){const _0x29012e=_0x597371,_0x17b97d=this[_0x29012e(0x1d7)][_0x29012e(0x1d6)],_0x4fd45d=_0x17b97d[_0x29012e(0x1c1)][_0x29012e(0x1d0)];return Object[_0x29012e(0x1bf)](Array[_0x29012e(0x1cd)](_0x4fd45d[_0x29012e(0x1c4)]())[_0x29012e(0x1d5)](([_0x3e1f62])=>_0x17b97d[_0x29012e(0x1bd)][_0x29012e(0x1c3)](_0x3e1f62)[_0x29012e(0x1cb)]));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x12a10f=_0x5aab;function _0x3aa9(){var _0x4f2c9f=['1gJOVMX','2800167RFlzNh','2724274vqGJuL','1761960TVsnDt','requires','353102xEgVxi','2016114PNBWge','1592syTBLI','FormatPainter','20187fOQRCE','4CzjnEI','550290pZyKrx','209CEfpxg','pluginName'];_0x3aa9=function(){return _0x4f2c9f;};return _0x3aa9();}function _0x5aab(_0x2ecdb3,_0x8d0538){var _0x3aa9f0=_0x3aa9();return _0x5aab=function(_0x5aab30,_0x2b1fce){_0x5aab30=_0x5aab30-0x70;var _0x55a01e=_0x3aa9f0[_0x5aab30];return _0x55a01e;},_0x5aab(_0x2ecdb3,_0x8d0538);}(function(_0x44c9ae,_0x34c374){var _0x36c3a4=_0x5aab,_0x239648=_0x44c9ae();while(!![]){try{var _0x38297a=parseInt(_0x36c3a4(0x70))/0x1*(-parseInt(_0x36c3a4(0x75))/0x2)+parseInt(_0x36c3a4(0x71))/0x3+parseInt(_0x36c3a4(0x7a))/0x4*(-parseInt(_0x36c3a4(0x73))/0x5)+parseInt(_0x36c3a4(0x76))/0x6+parseInt(_0x36c3a4(0x72))/0x7+-parseInt(_0x36c3a4(0x77))/0x8*(-parseInt(_0x36c3a4(0x79))/0x9)+-parseInt(_0x36c3a4(0x7b))/0xa*(parseInt(_0x36c3a4(0x7c))/0xb);if(_0x38297a===_0x34c374)break;else _0x239648['push'](_0x239648['shift']());}catch(_0x17a44e){_0x239648['push'](_0x239648['shift']());}}}(_0x3aa9,0x81815));import{Plugin as _0x352adf}from'ckeditor5/src/core.js';import _0x1a291c from'./formatpainterediting.js';import _0x214c08 from'./formatpainterui.js';export default class m extends _0x352adf{static get[_0x12a10f(0x74)](){return[_0x1a291c,_0x214c08];}static get[_0x12a10f(0x7d)](){var _0x39b3b0=_0x12a10f;return _0x39b3b0(0x78);}}
23
+ function _0x1d1d(_0x29f407,_0x2be714){var _0x598cc5=_0x598c();return _0x1d1d=function(_0x1d1dca,_0x4900fe){_0x1d1dca=_0x1d1dca-0x142;var _0x5759f1=_0x598cc5[_0x1d1dca];return _0x5759f1;},_0x1d1d(_0x29f407,_0x2be714);}function _0x598c(){var _0x4b2c3b=['74qnpOvw','pluginName','840215BAvfir','1399400ikwzwV','96884fTIWpV','FormatPainter','794829PklaCt','6gaCGKr','requires','1555435LelFCq','13990BcLVrD','64527UiHHVb','2781rdkxTt'];_0x598c=function(){return _0x4b2c3b;};return _0x598c();}var _0x27bce6=_0x1d1d;(function(_0x202fdc,_0x3bb9b9){var _0x5b9885=_0x1d1d,_0x54cb2a=_0x202fdc();while(!![]){try{var _0x59fea7=parseInt(_0x5b9885(0x14c))/0x1+parseInt(_0x5b9885(0x146))/0x2*(-parseInt(_0x5b9885(0x144))/0x3)+parseInt(_0x5b9885(0x14a))/0x4+parseInt(_0x5b9885(0x148))/0x5+-parseInt(_0x5b9885(0x14d))/0x6*(-parseInt(_0x5b9885(0x142))/0x7)+-parseInt(_0x5b9885(0x149))/0x8+parseInt(_0x5b9885(0x145))/0x9*(parseInt(_0x5b9885(0x143))/0xa);if(_0x59fea7===_0x3bb9b9)break;else _0x54cb2a['push'](_0x54cb2a['shift']());}catch(_0x39b73e){_0x54cb2a['push'](_0x54cb2a['shift']());}}}(_0x598c,0xa3c6f));import{Plugin as _0x1f6d8e}from'ckeditor5/src/core.js';import _0x4cb35e from'./formatpainterediting.js';import _0x4e762e from'./formatpainterui.js';export default class m extends _0x1f6d8e{static get[_0x27bce6(0x14e)](){return[_0x4cb35e,_0x4e762e];}static get[_0x27bce6(0x147)](){var _0x5913f0=_0x27bce6;return _0x5913f0(0x14b);}}