@ckeditor/ckeditor5-format-painter 41.3.1 → 41.4.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 (241) hide show
  1. package/build/format-painter.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/it.js +1 -1
  22. package/build/translations/ja.js +1 -1
  23. package/build/translations/ko.js +1 -1
  24. package/build/translations/lt.js +1 -1
  25. package/build/translations/lv.js +1 -1
  26. package/build/translations/ms.js +1 -1
  27. package/build/translations/nl.js +1 -1
  28. package/build/translations/no.js +1 -1
  29. package/build/translations/pl.js +1 -1
  30. package/build/translations/pt-br.js +1 -1
  31. package/build/translations/pt.js +1 -1
  32. package/build/translations/ro.js +1 -1
  33. package/build/translations/ru.js +1 -1
  34. package/build/translations/sk.js +1 -1
  35. package/build/translations/sr-latn.js +1 -1
  36. package/build/translations/sr.js +1 -1
  37. package/build/translations/sv.js +1 -1
  38. package/build/translations/th.js +1 -1
  39. package/build/translations/tr.js +1 -1
  40. package/build/translations/ug.js +1 -1
  41. package/build/translations/uk.js +1 -1
  42. package/build/translations/vi.js +1 -1
  43. package/build/translations/zh-cn.js +1 -1
  44. package/build/translations/zh.js +1 -1
  45. package/dist/index-content.css +4 -0
  46. package/dist/index-editor.css +7 -0
  47. package/dist/index.css +32 -0
  48. package/dist/index.js +23 -0
  49. package/dist/translations/ar.d.ts +8 -0
  50. package/dist/translations/ar.js +23 -0
  51. package/dist/translations/ar.umd.js +23 -0
  52. package/dist/translations/bg.d.ts +8 -0
  53. package/dist/translations/bg.js +23 -0
  54. package/dist/translations/bg.umd.js +23 -0
  55. package/dist/translations/bn.d.ts +8 -0
  56. package/dist/translations/bn.js +23 -0
  57. package/dist/translations/bn.umd.js +23 -0
  58. package/dist/translations/ca.d.ts +8 -0
  59. package/dist/translations/ca.js +23 -0
  60. package/dist/translations/ca.umd.js +23 -0
  61. package/dist/translations/cs.d.ts +8 -0
  62. package/dist/translations/cs.js +23 -0
  63. package/dist/translations/cs.umd.js +23 -0
  64. package/dist/translations/da.d.ts +8 -0
  65. package/dist/translations/da.js +23 -0
  66. package/dist/translations/da.umd.js +23 -0
  67. package/dist/translations/de.d.ts +8 -0
  68. package/dist/translations/de.js +23 -0
  69. package/dist/translations/de.umd.js +23 -0
  70. package/dist/translations/el.d.ts +8 -0
  71. package/dist/translations/el.js +23 -0
  72. package/dist/translations/el.umd.js +23 -0
  73. package/dist/translations/en-au.d.ts +8 -0
  74. package/dist/translations/en-au.js +23 -0
  75. package/dist/translations/en-au.umd.js +23 -0
  76. package/dist/translations/en.d.ts +8 -0
  77. package/dist/translations/en.js +23 -0
  78. package/dist/translations/en.umd.js +23 -0
  79. package/dist/translations/es.d.ts +8 -0
  80. package/dist/translations/es.js +23 -0
  81. package/dist/translations/es.umd.js +23 -0
  82. package/dist/translations/et.d.ts +8 -0
  83. package/dist/translations/et.js +23 -0
  84. package/dist/translations/et.umd.js +23 -0
  85. package/dist/translations/fi.d.ts +8 -0
  86. package/dist/translations/fi.js +23 -0
  87. package/dist/translations/fi.umd.js +23 -0
  88. package/dist/translations/fr.d.ts +8 -0
  89. package/dist/translations/fr.js +23 -0
  90. package/dist/translations/fr.umd.js +23 -0
  91. package/dist/translations/gl.d.ts +8 -0
  92. package/dist/translations/gl.js +23 -0
  93. package/dist/translations/gl.umd.js +23 -0
  94. package/dist/translations/he.d.ts +8 -0
  95. package/dist/translations/he.js +23 -0
  96. package/dist/translations/he.umd.js +23 -0
  97. package/dist/translations/hi.d.ts +8 -0
  98. package/dist/translations/hi.js +23 -0
  99. package/dist/translations/hi.umd.js +23 -0
  100. package/dist/translations/hr.d.ts +8 -0
  101. package/dist/translations/hr.js +23 -0
  102. package/dist/translations/hr.umd.js +23 -0
  103. package/dist/translations/hu.d.ts +8 -0
  104. package/dist/translations/hu.js +23 -0
  105. package/dist/translations/hu.umd.js +23 -0
  106. package/dist/translations/id.d.ts +8 -0
  107. package/dist/translations/id.js +23 -0
  108. package/dist/translations/id.umd.js +23 -0
  109. package/dist/translations/it.d.ts +8 -0
  110. package/dist/translations/it.js +23 -0
  111. package/dist/translations/it.umd.js +23 -0
  112. package/dist/translations/ja.d.ts +8 -0
  113. package/dist/translations/ja.js +23 -0
  114. package/dist/translations/ja.umd.js +23 -0
  115. package/dist/translations/ko.d.ts +8 -0
  116. package/dist/translations/ko.js +23 -0
  117. package/dist/translations/ko.umd.js +23 -0
  118. package/dist/translations/lt.d.ts +8 -0
  119. package/dist/translations/lt.js +23 -0
  120. package/dist/translations/lt.umd.js +23 -0
  121. package/dist/translations/lv.d.ts +8 -0
  122. package/dist/translations/lv.js +23 -0
  123. package/dist/translations/lv.umd.js +23 -0
  124. package/dist/translations/ms.d.ts +8 -0
  125. package/dist/translations/ms.js +23 -0
  126. package/dist/translations/ms.umd.js +23 -0
  127. package/dist/translations/nl.d.ts +8 -0
  128. package/dist/translations/nl.js +23 -0
  129. package/dist/translations/nl.umd.js +23 -0
  130. package/dist/translations/no.d.ts +8 -0
  131. package/dist/translations/no.js +23 -0
  132. package/dist/translations/no.umd.js +23 -0
  133. package/dist/translations/pl.d.ts +8 -0
  134. package/dist/translations/pl.js +23 -0
  135. package/dist/translations/pl.umd.js +23 -0
  136. package/dist/translations/pt-br.d.ts +8 -0
  137. package/dist/translations/pt-br.js +23 -0
  138. package/dist/translations/pt-br.umd.js +23 -0
  139. package/dist/translations/pt.d.ts +8 -0
  140. package/dist/translations/pt.js +23 -0
  141. package/dist/translations/pt.umd.js +23 -0
  142. package/dist/translations/ro.d.ts +8 -0
  143. package/dist/translations/ro.js +23 -0
  144. package/dist/translations/ro.umd.js +23 -0
  145. package/dist/translations/ru.d.ts +8 -0
  146. package/dist/translations/ru.js +23 -0
  147. package/dist/translations/ru.umd.js +23 -0
  148. package/dist/translations/sk.d.ts +8 -0
  149. package/dist/translations/sk.js +23 -0
  150. package/dist/translations/sk.umd.js +23 -0
  151. package/dist/translations/sr-latn.d.ts +8 -0
  152. package/dist/translations/sr-latn.js +23 -0
  153. package/dist/translations/sr-latn.umd.js +23 -0
  154. package/dist/translations/sr.d.ts +8 -0
  155. package/dist/translations/sr.js +23 -0
  156. package/dist/translations/sr.umd.js +23 -0
  157. package/dist/translations/sv.d.ts +8 -0
  158. package/dist/translations/sv.js +23 -0
  159. package/dist/translations/sv.umd.js +23 -0
  160. package/dist/translations/th.d.ts +8 -0
  161. package/dist/translations/th.js +23 -0
  162. package/dist/translations/th.umd.js +23 -0
  163. package/dist/translations/tr.d.ts +8 -0
  164. package/dist/translations/tr.js +23 -0
  165. package/dist/translations/tr.umd.js +23 -0
  166. package/dist/translations/ug.d.ts +8 -0
  167. package/dist/translations/ug.js +23 -0
  168. package/dist/translations/ug.umd.js +23 -0
  169. package/dist/translations/uk.d.ts +8 -0
  170. package/dist/translations/uk.js +23 -0
  171. package/dist/translations/uk.umd.js +23 -0
  172. package/dist/translations/vi.d.ts +8 -0
  173. package/dist/translations/vi.js +23 -0
  174. package/dist/translations/vi.umd.js +23 -0
  175. package/dist/translations/zh-cn.d.ts +8 -0
  176. package/dist/translations/zh-cn.js +23 -0
  177. package/dist/translations/zh-cn.umd.js +23 -0
  178. package/dist/translations/zh.d.ts +8 -0
  179. package/dist/translations/zh.js +23 -0
  180. package/dist/translations/zh.umd.js +23 -0
  181. package/dist/types/augmentation.d.ts +20 -0
  182. package/dist/types/copyformatcommand.d.ts +41 -0
  183. package/dist/types/formatpainter.d.ts +32 -0
  184. package/dist/types/formatpainterediting.d.ts +40 -0
  185. package/dist/types/formatpainterui.d.ts +36 -0
  186. package/dist/types/index.d.ts +18 -0
  187. package/dist/types/pasteformatcommand.d.ts +27 -0
  188. package/dist/types/utils.d.ts +29 -0
  189. package/lang/contexts.json +2 -0
  190. package/lang/translations/ar.po +8 -0
  191. package/lang/translations/bg.po +8 -0
  192. package/lang/translations/bn.po +8 -0
  193. package/lang/translations/ca.po +8 -0
  194. package/lang/translations/cs.po +8 -0
  195. package/lang/translations/da.po +8 -0
  196. package/lang/translations/de.po +8 -0
  197. package/lang/translations/el.po +8 -0
  198. package/lang/translations/en-au.po +8 -0
  199. package/lang/translations/en.po +8 -0
  200. package/lang/translations/es.po +8 -0
  201. package/lang/translations/et.po +8 -0
  202. package/lang/translations/fi.po +8 -0
  203. package/lang/translations/fr.po +8 -0
  204. package/lang/translations/gl.po +8 -0
  205. package/lang/translations/he.po +8 -0
  206. package/lang/translations/hi.po +8 -0
  207. package/lang/translations/hr.po +8 -0
  208. package/lang/translations/hu.po +8 -0
  209. package/lang/translations/id.po +8 -0
  210. package/lang/translations/it.po +8 -0
  211. package/lang/translations/ja.po +8 -0
  212. package/lang/translations/ko.po +8 -0
  213. package/lang/translations/lt.po +8 -0
  214. package/lang/translations/lv.po +8 -0
  215. package/lang/translations/ms.po +8 -0
  216. package/lang/translations/nl.po +8 -0
  217. package/lang/translations/no.po +8 -0
  218. package/lang/translations/pl.po +8 -0
  219. package/lang/translations/pt-br.po +8 -0
  220. package/lang/translations/pt.po +8 -0
  221. package/lang/translations/ro.po +8 -0
  222. package/lang/translations/ru.po +8 -0
  223. package/lang/translations/sk.po +8 -0
  224. package/lang/translations/sr-latn.po +8 -0
  225. package/lang/translations/sr.po +8 -0
  226. package/lang/translations/sv.po +8 -0
  227. package/lang/translations/th.po +8 -0
  228. package/lang/translations/tr.po +8 -0
  229. package/lang/translations/ug.po +8 -0
  230. package/lang/translations/uk.po +8 -0
  231. package/lang/translations/vi.po +8 -0
  232. package/lang/translations/zh-cn.po +8 -0
  233. package/lang/translations/zh.po +8 -0
  234. package/package.json +4 -3
  235. package/src/copyformatcommand.js +1 -1
  236. package/src/formatpainter.js +1 -1
  237. package/src/formatpainterediting.js +1 -1
  238. package/src/formatpainterui.js +1 -1
  239. package/src/index.js +1 -1
  240. package/src/pasteformatcommand.js +1 -1
  241. package/src/utils.js +1 -1
@@ -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
+ (_0x5a5c4f=>{const {'zh-cn':{dictionary:_0x2e0c4b,getPluralForm:_0x4dbbbf}}={'zh-cn':{'dictionary':{'Paint\x20formatting':'绘画格式化','Copy\x20text\x20formatting':'复制文本格式','Paste\x20text\x20formatting':'粘贴文本格式','Continuous\x20painting':'连续绘画','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'设置格式化后,保持画师的状态。','Formatting\x20copied.':'格式已复制。','Pasted\x20formatting.':'已粘贴格式。'},'getPluralForm':_0x1edf3e=>0x0}};_0x5a5c4f['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x5a5c4f['zh-cn']['dictionary']=Object['assign'](_0x5a5c4f['zh-cn']['dictionary'],_0x2e0c4b),_0x5a5c4f['zh-cn']['getPluralForm']=_0x4dbbbf;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -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':'油漆格式','Copy\x20text\x20formatting':'複製文字格式','Paste\x20text\x20formatting':'貼上文字格式','Continuous\x20painting':'連續繪製','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'設定格式後,保持繪圖工具開啟。','Formatting\x20copied.':'已複製格式。','Pasted\x20formatting.':'已貼上格式。'},'getPluralForm':_0x287388=>0x0}};
@@ -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
+ (_0x422e92=>{const {zh:{dictionary:_0x61a18d,getPluralForm:_0x286078}}={'zh':{'dictionary':{'Paint\x20formatting':'油漆格式','Copy\x20text\x20formatting':'複製文字格式','Paste\x20text\x20formatting':'貼上文字格式','Continuous\x20painting':'連續繪製','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'設定格式後,保持繪圖工具開啟。','Formatting\x20copied.':'已複製格式。','Pasted\x20formatting.':'已貼上格式。'},'getPluralForm':_0x59e249=>0x0}};_0x422e92['zh']||={'dictionary':{},'getPluralForm':null},_0x422e92['zh']['dictionary']=Object['assign'](_0x422e92['zh']['dictionary'],_0x61a18d),_0x422e92['zh']['getPluralForm']=_0x286078;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -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";
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "Paint formatting": "A toolbar button tooltip for the format painter feature.",
3
+ "Copy text formatting": "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'.",
4
+ "Paste text formatting": "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'.",
3
5
  "Continuous painting": "The label for the continuous painting checkbox in the format painter dropdown.",
4
6
  "Keeps the painter on after setting the formatting.": "The tooltip displayed for the continuous painting button explaining what it does.",
5
7
  "Formatting copied.": "A message read out by assistive technologies the moment the formatting is copied by the user.",
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "نسخ التنسيق"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "نسخ تنسيق النص"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "لصق تنسيق النص"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "نسخ التنسيق تحديدات متعددة"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Цветово форматиране"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Копиране на текстово форматиране"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Поставяне на текстово форматиране"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Непрекъснато оцветяване"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "পেইন্ট ফরম্যাটিং"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "টেক্সট ফরম্যাটিং কপি করুন"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "টেক্সট ফরম্যাটিং পেস্ট করুন"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "একটানা পেইন্টিং"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Format de la pintura"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Copia el format del text"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Enganxa el format del text"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Pintura contínua"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Štětec pro kopírování formátu"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Kopírovat formátování textu"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Vložit formátování textu"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Nepřerušované kopírování"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Mal format"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Kopier tekstformatering"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Indsæt tekstformatering"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Fortsat maleri"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Format übertragen"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Textformatierung kopieren"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Textformatierung einfügen"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Kontinuierliches Übertragen"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Μορφοποίηση ζωγραφικής"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Αντιγραφή μορφοποίησης κειμένου"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Επικόλληση μορφοποίησης κειμένου"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Συνεχής ζωγραφική"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Paint formatting"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr ""
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr ""
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Continuous painting"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Paint formatting"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Copy text formatting"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Paste text formatting"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Continuous painting"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Copiar formato"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Copiar formato de texto"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Pegar formato de texto"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Copia continua"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Värvi vormindamine"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Kopeeri teksti vorming"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Aseta teksti vorming"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Pidev värvimine"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Maalin muotoilu"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Kopioi tekstin muotoilu"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Liitä tekstin muotoilu"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Jatkuva maalaus"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Mise en forme de la peinture"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "Copier la mise en forme du texte"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "Coller la mise en forme du texte"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Peinture continue"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Formato de pintura"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr ""
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr ""
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Pintura continua"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "עיצוב צבע"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "העתק עיצוב טקסט"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "הדבק עיצוב טקסט"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "צביעה מתמשכת"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "पेंट फ़ॉर्मैटिंग"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr "टेक्स्ट फ़ॉर्मेटिंग कॉपी करें"
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr "टेक्स्ट फ़ॉर्मेटिंग को पेस्ट करें"
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "निरंतर पेंटिंग"
@@ -21,6 +21,14 @@ msgctxt "A toolbar button tooltip for the format painter feature."
21
21
  msgid "Paint formatting"
22
22
  msgstr "Boja formatiranja"
23
23
 
24
+ msgctxt "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'."
25
+ msgid "Copy text formatting"
26
+ msgstr ""
27
+
28
+ msgctxt "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'."
29
+ msgid "Paste text formatting"
30
+ msgstr ""
31
+
24
32
  msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
25
33
  msgid "Continuous painting"
26
34
  msgstr "Neprekinuto bojanje"