@ckeditor/ckeditor5-format-painter 0.0.1 → 37.1.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 (105) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +34 -3
  3. package/build/format-painter.js +5 -0
  4. package/build/translations/ar.js +1 -0
  5. package/build/translations/bg.js +1 -0
  6. package/build/translations/bn.js +1 -0
  7. package/build/translations/ca.js +1 -0
  8. package/build/translations/cs.js +1 -0
  9. package/build/translations/da.js +1 -0
  10. package/build/translations/de.js +1 -0
  11. package/build/translations/el.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fi.js +1 -0
  15. package/build/translations/fr.js +1 -0
  16. package/build/translations/he.js +1 -0
  17. package/build/translations/hi.js +1 -0
  18. package/build/translations/hr.js +1 -0
  19. package/build/translations/hu.js +1 -0
  20. package/build/translations/id.js +1 -0
  21. package/build/translations/it.js +1 -0
  22. package/build/translations/ja.js +1 -0
  23. package/build/translations/ko.js +1 -0
  24. package/build/translations/lt.js +1 -0
  25. package/build/translations/lv.js +1 -0
  26. package/build/translations/ms.js +1 -0
  27. package/build/translations/nl.js +1 -0
  28. package/build/translations/no.js +1 -0
  29. package/build/translations/pl.js +1 -0
  30. package/build/translations/pt-br.js +1 -0
  31. package/build/translations/pt.js +1 -0
  32. package/build/translations/ro.js +1 -0
  33. package/build/translations/ru.js +1 -0
  34. package/build/translations/sk.js +1 -0
  35. package/build/translations/sr.js +1 -0
  36. package/build/translations/sv.js +1 -0
  37. package/build/translations/th.js +1 -0
  38. package/build/translations/tr.js +1 -0
  39. package/build/translations/uk.js +1 -0
  40. package/build/translations/vi.js +1 -0
  41. package/build/translations/zh-cn.js +1 -0
  42. package/build/translations/zh.js +1 -0
  43. package/ckeditor5-metadata.json +18 -0
  44. package/lang/contexts.json +5 -0
  45. package/lang/translations/ar.po +29 -0
  46. package/lang/translations/bg.po +29 -0
  47. package/lang/translations/bn.po +29 -0
  48. package/lang/translations/ca.po +29 -0
  49. package/lang/translations/cs.po +29 -0
  50. package/lang/translations/da.po +29 -0
  51. package/lang/translations/de.po +29 -0
  52. package/lang/translations/el.po +29 -0
  53. package/lang/translations/en.po +29 -0
  54. package/lang/translations/es.po +29 -0
  55. package/lang/translations/et.po +29 -0
  56. package/lang/translations/fi.po +29 -0
  57. package/lang/translations/fr.po +29 -0
  58. package/lang/translations/he.po +29 -0
  59. package/lang/translations/hi.po +29 -0
  60. package/lang/translations/hr.po +29 -0
  61. package/lang/translations/hu.po +29 -0
  62. package/lang/translations/id.po +29 -0
  63. package/lang/translations/it.po +29 -0
  64. package/lang/translations/ja.po +29 -0
  65. package/lang/translations/ko.po +29 -0
  66. package/lang/translations/lt.po +29 -0
  67. package/lang/translations/lv.po +29 -0
  68. package/lang/translations/ms.po +29 -0
  69. package/lang/translations/nl.po +29 -0
  70. package/lang/translations/no.po +29 -0
  71. package/lang/translations/pl.po +29 -0
  72. package/lang/translations/pt-br.po +29 -0
  73. package/lang/translations/pt.po +29 -0
  74. package/lang/translations/ro.po +29 -0
  75. package/lang/translations/ru.po +29 -0
  76. package/lang/translations/sk.po +29 -0
  77. package/lang/translations/sr.po +29 -0
  78. package/lang/translations/sv.po +29 -0
  79. package/lang/translations/th.po +29 -0
  80. package/lang/translations/tr.po +29 -0
  81. package/lang/translations/uk.po +29 -0
  82. package/lang/translations/vi.po +29 -0
  83. package/lang/translations/zh-cn.po +29 -0
  84. package/lang/translations/zh.po +29 -0
  85. package/package.json +24 -4
  86. package/src/augmentation.d.ts +16 -0
  87. package/src/augmentation.js +23 -0
  88. package/src/copyformatcommand.d.ts +37 -0
  89. package/src/copyformatcommand.js +23 -0
  90. package/src/formatpainter.d.ts +26 -0
  91. package/src/formatpainter.js +23 -0
  92. package/src/formatpainterediting.d.ts +32 -0
  93. package/src/formatpainterediting.js +23 -0
  94. package/src/formatpainterui.d.ts +32 -0
  95. package/src/formatpainterui.js +23 -0
  96. package/src/index.d.ts +14 -0
  97. package/src/index.js +23 -0
  98. package/src/pasteformatcommand.d.ts +23 -0
  99. package/src/pasteformatcommand.js +23 -0
  100. package/src/utils.d.ts +25 -0
  101. package/src/utils.js +23 -0
  102. package/theme/formatpainter.css +24 -0
  103. package/theme/icons/paint-roller-cursor-default.svg +17 -0
  104. package/theme/icons/paint-roller-cursor-text.svg +7 -0
  105. package/theme/icons/paint-roller.svg +1 -0
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
16
+ "Language: pt\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Pincel de formatação"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Pintura contínua"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Mantém o pincel ativo depois de aplicar a formatação."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
16
+ "Language: ro\n"
17
+ "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Formatare Desen"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Desen continuu"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Menține activă funcția de desenare după alegerea formatării."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
16
+ "Language: ru\n"
17
+ "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Форматирование рисунков"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Непрерывное рисование"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Оставляет рисование включенным после настройки форматирования."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
+ "Language: sk\n"
17
+ "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Formátovanie maľovania"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Nepretržité maľovanie"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Po nastavení formátovania ponechá maľovanie zapnuté."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
+ "Language: sr\n"
17
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Formatiranje boje"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Kontinuirano slikanje"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Ostavlja četkicu uključenom nakon podešavanja formatiranja."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
+ "Language: sv\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Formatering av färgläggning"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Fortlöpande målning"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Behåller målaren på efter att formateringen har satts."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
+ "Language: th\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "ระบายการจัดรูป"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "การระบายอย่างต่อเนื่อง"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "เก็บเครื่องมือระบายไว้หลังจากตั้งค่าการจัดรูปแบบแล้ว"
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
+ "Language: tr\n"
17
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Boya biçimlendirme"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Sürekli boyama"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Biçimlendirmeyi ayarladıktan sonra boyacıyı açık tutar."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
+ "Language: uk\n"
17
+ "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Художнє форматування"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Постійне малювання"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Тримає малювання ввімкненим після налаштування форматування."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
+ "Language: vi\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "Sao chép định dạng"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "Tô màu liên tục"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "Giữ trình tô màu được bật sau khi đặt định dạng."
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
+ "Language: zh_CN\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "绘画格式化"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "连续绘画"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "设置格式化后,保持画师的状态。"
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A toolbar button tooltip for a format painter feature."
20
+ msgid "Paint formatting"
21
+ msgstr "油漆格式"
22
+
23
+ msgctxt "The label for the continuous painting checkbox in the format painter dropdown."
24
+ msgid "Continuous painting"
25
+ msgstr "連續繪製"
26
+
27
+ msgctxt "The tooltip displayed for the continuous painting button explaining what it does to the feature."
28
+ msgid "Keeps the painter on after setting the formatting."
29
+ msgstr "設定格式後,保持繪圖工具開啟。"
package/package.json CHANGED
@@ -1,15 +1,35 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "0.0.1",
3
+ "version": "37.1.0",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
7
7
  "ckeditor5",
8
8
  "ckeditor 5",
9
- "ckeditor5-lib"
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin"
10
11
  ],
12
+ "main": "src/index.js",
13
+ "dependencies": {
14
+ "ckeditor5": "^37.1.0"
15
+ },
16
+ "license": "SEE LICENSE IN LICENSE.md",
11
17
  "author": "CKSource (http://cksource.com/)",
12
- "license": "GPL-2.0-or-later",
13
18
  "homepage": "https://ckeditor.com/ckeditor-5",
14
- "bugs": "https://github.com/ckeditor/ckeditor5/issues"
19
+ "files": [
20
+ "lang",
21
+ "src/**/*.js",
22
+ "src/**/*.d.ts",
23
+ "theme",
24
+ "build",
25
+ "ckeditor5-metadata.json",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsc -p ./tsconfig.json",
30
+ "postversion": "npm run build",
31
+ "dll:build": "webpack"
32
+ },
33
+ "types": "src/index.d.ts",
34
+ "obfuscated": true
15
35
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [FormatPainter.pluginName]: FormatPainter;
9
+ [FormatPainterEditing.pluginName]: FormatPainterEditing;
10
+ [FormatPainterUI.pluginName]: FormatPainterUI;
11
+ }
12
+ interface CommandsMap {
13
+ [COPY_FORMAT_COMMAND_NAME]: CopyFormatCommand;
14
+ [PASTE_FORMAT_COMMAND_NAME]: PasteFormatCommand;
15
+ }
16
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, 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{};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/copyformatcommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
+ import type { FormattingAttributesValues } from './formatpainterediting';
11
+ /**
12
+ * This command copies the formatting from the current {@link module:engine/model/selection~Selection model selection}
13
+ * and stores it in its {@link module:format-painter/copyformatcommand~CopyFormatCommand#value} property.
14
+ *
15
+ * The formatting can then be pasted using the {@link module:format-painter/pasteformatcommand~PasteFormatCommand}.
16
+ *
17
+ * @extends module:core/command~Command
18
+ */
19
+ export default class CopyFormatCommand extends Command {
20
+ value: FormattingAttributesValues | undefined;
21
+ /**
22
+ * Creates a new `CopyFormatCommand` instance.
23
+ *
24
+ * @param {module:core/editor/editor~Editor} editor The editor on which this command will be used.
25
+ */
26
+ constructor(editor: Editor);
27
+ /**
28
+ * Executes the command. The formatting is then stored in the {@link #value} property.
29
+ *
30
+ * @fires execute
31
+ */
32
+ execute(): void;
33
+ /**
34
+ * Resets the stored formatting.
35
+ */
36
+ reset(): void;
37
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, 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
+ const _0xb0fb=['schema','value','change:isEnabled','_getFormattingAttributes','filter','get','getAttributeProperties','execute','model','getAttributes','reset','from'];(function(_0x176f88,_0xb0fb3d){const _0x788ce1=function(_0x3a361f){while(--_0x3a361f){_0x176f88['push'](_0x176f88['shift']());}};_0x788ce1(++_0xb0fb3d);}(_0xb0fb,0xc6));const _0x788c=function(_0x176f88,_0xb0fb3d){_0x176f88=_0x176f88-0x0;let _0x788ce1=_0xb0fb[_0x176f88];return _0x788ce1;};import{Command as _0xf3407}from'ckeditor5/src/core';import{PASTE_FORMAT_COMMAND_NAME as _0x40c3b2}from'./utils';export default class r extends _0xf3407{constructor(_0x465140){super(_0x465140),this[_0x788c('0x7')]=void 0x0,this['on'](_0x788c('0x8'),(_0x5c888b,_0xed4b78,_0x41fbc3)=>{_0x41fbc3||this[_0x788c('0x4')]();}),this['on']('change:value',()=>_0x465140['commands'][_0x788c('0xb')](_0x40c3b2)['refresh']());}[_0x788c('0x1')](){this[_0x788c('0x7')]=this['_getFormattingAttributes']();}['reset'](){this[_0x788c('0x7')]=void 0x0;}[_0x788c('0x9')](){const _0x3a0c82=this['editor'][_0x788c('0x2')],_0x15f190=_0x3a0c82['document']['selection'];return Object['fromEntries'](Array[_0x788c('0x5')](_0x15f190[_0x788c('0x3')]())[_0x788c('0xa')](([_0x27bec0])=>_0x3a0c82[_0x788c('0x6')][_0x788c('0x0')](_0x27bec0)['isFormatting']));}}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/formatpainter
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
10
+ /**
11
+ * The format painter feature.
12
+ *
13
+ * For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
14
+ *
15
+ * @extends module:core/plugin~Plugin
16
+ */
17
+ export default class FormatPainter extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): PluginDependencies;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): 'FormatPainter';
26
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, 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
+ var _0xb055=['FormatPainter'];(function(_0x504737,_0xb055a8){var _0x4fae3a=function(_0x409a60){while(--_0x409a60){_0x504737['push'](_0x504737['shift']());}};_0x4fae3a(++_0xb055a8);}(_0xb055,0x1b5));var _0x4fae=function(_0x504737,_0xb055a8){_0x504737=_0x504737-0x0;var _0x4fae3a=_0xb055[_0x504737];return _0x4fae3a;};import{Plugin as _0x3688bc}from'ckeditor5/src/core';import _0x539698 from'./formatpainterediting';import _0x41a902 from'./formatpainterui';export default class m extends _0x3688bc{static get['requires'](){return[_0x539698,_0x41a902];}static get['pluginName'](){return _0x4fae('0x0');}}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module format-painter/formatpainterediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
11
+ */
12
+ export default class FormatPainterEditing extends Plugin {
13
+ licenseKey: string;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): 'FormatPainterEditing';
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ }
27
+ /**
28
+ * An object with key-value pairs describing formatting model attributes and their values.
29
+ */
30
+ export type FormattingAttributesValues = {
31
+ [k: string]: unknown;
32
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, 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
+ const _0x22dc=['add','licenseKey','editor','config','info','commands','_licenseKeyCheckInterval','formatPainterLicenseKeyTrialLimit:operations','formatPainterLicenseKeyTrial','get','formatPainterLicenseKeyInvalid','formatPainterLicenseKeyValid','FormatPainterEditing','format-painter-invalid-license-key'];(function(_0x573f89,_0x22dc57){const _0x22dc18=function(_0xc1282f){while(--_0xc1282f){_0x573f89['push'](_0x573f89['shift']());}};_0x22dc18(++_0x22dc57);}(_0x22dc,0x1d2));const _0xc128=function(_0x573f89,_0x22dc57){_0x573f89=_0x573f89-0x0;let _0x22dc18=_0x22dc[_0x573f89];return _0x22dc18;};import{Plugin as _0x4ef532}from'ckeditor5/src/core';import{CKEditorError as _0x20c51e}from'ckeditor5/src/utils';import _0x1ff20a from'./copyformatcommand';import _0x1a34de from'./pasteformatcommand';import{COPY_FORMAT_COMMAND_NAME as _0x50e28f,PASTE_FORMAT_COMMAND_NAME as _0x40332f}from'./utils';export default class o extends _0x4ef532{static get['pluginName'](){return _0xc128('0x8');}constructor(_0x55041a){super(_0x55041a),this[_0xc128('0x2')]=null;}['init'](){const _0x212508=this[_0xc128('0xc')];_0x212508[_0xc128('0x1')]['add'](_0x50e28f,new _0x1ff20a(_0x212508)),_0x212508[_0xc128('0x1')][_0xc128('0xa')](_0x40332f,new _0x1a34de(_0x212508)),this[_0xc128('0xb')]=_0x212508[_0xc128('0xd')][_0xc128('0x5')](_0xc128('0xb'));const _0x3fcc1d=this['editor'];this[_0xc128('0x2')]=setInterval(()=>{let _0x2ac24a;for(const _0x23b4eb in _0x3fcc1d){const _0x325375=_0x23b4eb,_0x900c0=_0x3fcc1d[_0x325375];if(_0xc128('0x4')===_0x900c0||_0xc128('0x6')===_0x900c0||_0xc128('0x7')===_0x900c0||'formatPainterLicenseKeyTrialLimit:operations'===_0x900c0){delete _0x3fcc1d[_0x325375],_0x2ac24a=_0x900c0;break;}}if(_0xc128('0x6')===_0x2ac24a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x20c51e(_0xc128('0x9'),null);if(_0xc128('0x4')===_0x2ac24a&&console[_0xc128('0x0')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),_0xc128('0x3')===_0x2ac24a)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x20c51e('format-painter-trial-license-key-reached-limit-changes',null);_0xc128('0x7')===_0x2ac24a&&clearInterval(this[_0xc128('0x2')]);},0x3e8);}}