@ckeditor/ckeditor5-format-painter 41.3.0-alpha.4 → 41.3.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.
Files changed (109) hide show
  1. package/build/format-painter.js +1 -1
  2. package/package.json +3 -4
  3. package/src/copyformatcommand.js +1 -1
  4. package/src/formatpainter.js +1 -1
  5. package/src/formatpainterediting.js +1 -1
  6. package/src/formatpainterui.js +1 -1
  7. package/src/index.js +1 -1
  8. package/src/pasteformatcommand.js +1 -1
  9. package/src/utils.js +1 -1
  10. package/build/format-painter.js.map +0 -1
  11. package/dist/content-index.css +0 -332
  12. package/dist/editor-index.css +0 -315
  13. package/dist/index.css +0 -980
  14. package/dist/translations/ar.d.ts +0 -8
  15. package/dist/translations/ar.js +0 -23
  16. package/dist/translations/bg.d.ts +0 -8
  17. package/dist/translations/bg.js +0 -23
  18. package/dist/translations/bn.d.ts +0 -8
  19. package/dist/translations/bn.js +0 -23
  20. package/dist/translations/ca.d.ts +0 -8
  21. package/dist/translations/ca.js +0 -23
  22. package/dist/translations/cs.d.ts +0 -8
  23. package/dist/translations/cs.js +0 -23
  24. package/dist/translations/da.d.ts +0 -8
  25. package/dist/translations/da.js +0 -23
  26. package/dist/translations/de.d.ts +0 -8
  27. package/dist/translations/de.js +0 -23
  28. package/dist/translations/el.d.ts +0 -8
  29. package/dist/translations/el.js +0 -23
  30. package/dist/translations/en-au.d.ts +0 -8
  31. package/dist/translations/en-au.js +0 -23
  32. package/dist/translations/en.d.ts +0 -8
  33. package/dist/translations/en.js +0 -23
  34. package/dist/translations/es.d.ts +0 -8
  35. package/dist/translations/es.js +0 -23
  36. package/dist/translations/et.d.ts +0 -8
  37. package/dist/translations/et.js +0 -23
  38. package/dist/translations/fi.d.ts +0 -8
  39. package/dist/translations/fi.js +0 -23
  40. package/dist/translations/fr.d.ts +0 -8
  41. package/dist/translations/fr.js +0 -23
  42. package/dist/translations/gl.d.ts +0 -8
  43. package/dist/translations/gl.js +0 -23
  44. package/dist/translations/he.d.ts +0 -8
  45. package/dist/translations/he.js +0 -23
  46. package/dist/translations/hi.d.ts +0 -8
  47. package/dist/translations/hi.js +0 -23
  48. package/dist/translations/hr.d.ts +0 -8
  49. package/dist/translations/hr.js +0 -23
  50. package/dist/translations/hu.d.ts +0 -8
  51. package/dist/translations/hu.js +0 -23
  52. package/dist/translations/id.d.ts +0 -8
  53. package/dist/translations/id.js +0 -23
  54. package/dist/translations/it.d.ts +0 -8
  55. package/dist/translations/it.js +0 -23
  56. package/dist/translations/ja.d.ts +0 -8
  57. package/dist/translations/ja.js +0 -23
  58. package/dist/translations/ko.d.ts +0 -8
  59. package/dist/translations/ko.js +0 -23
  60. package/dist/translations/lt.d.ts +0 -8
  61. package/dist/translations/lt.js +0 -23
  62. package/dist/translations/lv.d.ts +0 -8
  63. package/dist/translations/lv.js +0 -23
  64. package/dist/translations/ms.d.ts +0 -8
  65. package/dist/translations/ms.js +0 -23
  66. package/dist/translations/nl.d.ts +0 -8
  67. package/dist/translations/nl.js +0 -23
  68. package/dist/translations/no.d.ts +0 -8
  69. package/dist/translations/no.js +0 -23
  70. package/dist/translations/pl.d.ts +0 -8
  71. package/dist/translations/pl.js +0 -23
  72. package/dist/translations/pt-br.d.ts +0 -8
  73. package/dist/translations/pt-br.js +0 -23
  74. package/dist/translations/pt.d.ts +0 -8
  75. package/dist/translations/pt.js +0 -23
  76. package/dist/translations/ro.d.ts +0 -8
  77. package/dist/translations/ro.js +0 -23
  78. package/dist/translations/ru.d.ts +0 -8
  79. package/dist/translations/ru.js +0 -23
  80. package/dist/translations/sk.d.ts +0 -8
  81. package/dist/translations/sk.js +0 -23
  82. package/dist/translations/sr-latn.d.ts +0 -8
  83. package/dist/translations/sr-latn.js +0 -23
  84. package/dist/translations/sr.d.ts +0 -8
  85. package/dist/translations/sr.js +0 -23
  86. package/dist/translations/sv.d.ts +0 -8
  87. package/dist/translations/sv.js +0 -23
  88. package/dist/translations/th.d.ts +0 -8
  89. package/dist/translations/th.js +0 -23
  90. package/dist/translations/tr.d.ts +0 -8
  91. package/dist/translations/tr.js +0 -23
  92. package/dist/translations/ug.d.ts +0 -8
  93. package/dist/translations/ug.js +0 -23
  94. package/dist/translations/uk.d.ts +0 -8
  95. package/dist/translations/uk.js +0 -23
  96. package/dist/translations/vi.d.ts +0 -8
  97. package/dist/translations/vi.js +0 -23
  98. package/dist/translations/zh-cn.d.ts +0 -8
  99. package/dist/translations/zh-cn.js +0 -23
  100. package/dist/translations/zh.d.ts +0 -8
  101. package/dist/translations/zh.js +0 -23
  102. package/dist/types/augmentation.d.ts +0 -20
  103. package/dist/types/copyformatcommand.d.ts +0 -41
  104. package/dist/types/formatpainter.d.ts +0 -32
  105. package/dist/types/formatpainterediting.d.ts +0 -40
  106. package/dist/types/formatpainterui.d.ts +0 -36
  107. package/dist/types/index.d.ts +0 -18
  108. package/dist/types/pasteformatcommand.d.ts +0 -27
  109. package/dist/types/utils.d.ts +0 -29
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x4b4319=>_0x4b4319%0xa==0x1&&_0x4b4319%0x64!=0xb?0x0:_0x4b4319%0xa>=0x2&&_0x4b4319%0xa<=0x4&&(_0x4b4319%0x64<0xa||_0x4b4319%0x64>=0x14)?0x1:0x2}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x57f098=>0x1!=_0x57f098}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x50bd6a=>0x0}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x5942af=>_0x5942af>0x1}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x1348e3=>0x1!=_0x1348e3}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x42603e=>_0x42603e%0x1==0x0&&_0x42603e%0xa==0x1&&_0x42603e%0x64!=0xb?0x0:_0x42603e%0x1==0x0&&_0x42603e%0xa>=0x2&&_0x42603e%0xa<=0x4&&(_0x42603e%0x64<0xc||_0x42603e%0x64>0xe)?0x1:_0x42603e%0x1==0x0&&(_0x42603e%0xa==0x0||_0x42603e%0xa>=0x5&&_0x42603e%0xa<=0x9||_0x42603e%0x64>=0xb&&_0x42603e%0x64<=0xe)?0x2:0x3}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x2e8867=>0x0}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x2756ed=>0x0}};
@@ -1,8 +0,0 @@
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;
@@ -1,23 +0,0 @@
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':_0x5c0ce6=>0x0}};
@@ -1,20 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,40 +0,0 @@
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
- };
@@ -1,36 +0,0 @@
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 {};
@@ -1,18 +0,0 @@
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';
@@ -1,27 +0,0 @@
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
- }
@@ -1,29 +0,0 @@
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";