@ckeditor/ckeditor5-remove-format 41.3.0-alpha.0 → 41.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/translations/af.d.ts +8 -0
  2. package/dist/translations/af.js +5 -0
  3. package/dist/translations/ar.d.ts +8 -0
  4. package/dist/translations/ar.js +5 -0
  5. package/dist/translations/az.d.ts +8 -0
  6. package/dist/translations/az.js +5 -0
  7. package/dist/translations/bg.d.ts +8 -0
  8. package/dist/translations/bg.js +5 -0
  9. package/dist/translations/bn.d.ts +8 -0
  10. package/dist/translations/bn.js +5 -0
  11. package/dist/translations/ca.d.ts +8 -0
  12. package/dist/translations/ca.js +5 -0
  13. package/dist/translations/cs.d.ts +8 -0
  14. package/dist/translations/cs.js +5 -0
  15. package/dist/translations/da.d.ts +8 -0
  16. package/dist/translations/da.js +5 -0
  17. package/dist/translations/de-ch.d.ts +8 -0
  18. package/dist/translations/de-ch.js +5 -0
  19. package/dist/translations/de.d.ts +8 -0
  20. package/dist/translations/de.js +5 -0
  21. package/dist/translations/el.d.ts +8 -0
  22. package/dist/translations/el.js +5 -0
  23. package/dist/translations/en-au.d.ts +8 -0
  24. package/dist/translations/en-au.js +5 -0
  25. package/dist/translations/en-gb.d.ts +8 -0
  26. package/dist/translations/en-gb.js +5 -0
  27. package/dist/translations/en.d.ts +8 -0
  28. package/dist/translations/en.js +5 -0
  29. package/dist/translations/es.d.ts +8 -0
  30. package/dist/translations/es.js +5 -0
  31. package/dist/translations/et.d.ts +8 -0
  32. package/dist/translations/et.js +5 -0
  33. package/dist/translations/fa.d.ts +8 -0
  34. package/dist/translations/fa.js +5 -0
  35. package/dist/translations/fi.d.ts +8 -0
  36. package/dist/translations/fi.js +5 -0
  37. package/dist/translations/fr.d.ts +8 -0
  38. package/dist/translations/fr.js +5 -0
  39. package/dist/translations/gl.d.ts +8 -0
  40. package/dist/translations/gl.js +5 -0
  41. package/dist/translations/he.d.ts +8 -0
  42. package/dist/translations/he.js +5 -0
  43. package/dist/translations/hi.d.ts +8 -0
  44. package/dist/translations/hi.js +5 -0
  45. package/dist/translations/hr.d.ts +8 -0
  46. package/dist/translations/hr.js +5 -0
  47. package/dist/translations/hu.d.ts +8 -0
  48. package/dist/translations/hu.js +5 -0
  49. package/dist/translations/id.d.ts +8 -0
  50. package/dist/translations/id.js +5 -0
  51. package/dist/translations/it.d.ts +8 -0
  52. package/dist/translations/it.js +5 -0
  53. package/dist/translations/ja.d.ts +8 -0
  54. package/dist/translations/ja.js +5 -0
  55. package/dist/translations/ko.d.ts +8 -0
  56. package/dist/translations/ko.js +5 -0
  57. package/dist/translations/ku.d.ts +8 -0
  58. package/dist/translations/ku.js +5 -0
  59. package/dist/translations/lt.d.ts +8 -0
  60. package/dist/translations/lt.js +5 -0
  61. package/dist/translations/lv.d.ts +8 -0
  62. package/dist/translations/lv.js +5 -0
  63. package/dist/translations/ms.d.ts +8 -0
  64. package/dist/translations/ms.js +5 -0
  65. package/dist/translations/ne.d.ts +8 -0
  66. package/dist/translations/ne.js +5 -0
  67. package/dist/translations/nl.d.ts +8 -0
  68. package/dist/translations/nl.js +5 -0
  69. package/dist/translations/no.d.ts +8 -0
  70. package/dist/translations/no.js +5 -0
  71. package/dist/translations/pl.d.ts +8 -0
  72. package/dist/translations/pl.js +5 -0
  73. package/dist/translations/pt-br.d.ts +8 -0
  74. package/dist/translations/pt-br.js +5 -0
  75. package/dist/translations/pt.d.ts +8 -0
  76. package/dist/translations/pt.js +5 -0
  77. package/dist/translations/ro.d.ts +8 -0
  78. package/dist/translations/ro.js +5 -0
  79. package/dist/translations/ru.d.ts +8 -0
  80. package/dist/translations/ru.js +5 -0
  81. package/dist/translations/sk.d.ts +8 -0
  82. package/dist/translations/sk.js +5 -0
  83. package/dist/translations/sq.d.ts +8 -0
  84. package/dist/translations/sq.js +5 -0
  85. package/dist/translations/sr-latn.d.ts +8 -0
  86. package/dist/translations/sr-latn.js +5 -0
  87. package/dist/translations/sr.d.ts +8 -0
  88. package/dist/translations/sr.js +5 -0
  89. package/dist/translations/sv.d.ts +8 -0
  90. package/dist/translations/sv.js +5 -0
  91. package/dist/translations/th.d.ts +8 -0
  92. package/dist/translations/th.js +5 -0
  93. package/dist/translations/tk.d.ts +8 -0
  94. package/dist/translations/tk.js +5 -0
  95. package/dist/translations/tr.d.ts +8 -0
  96. package/dist/translations/tr.js +5 -0
  97. package/dist/translations/ug.d.ts +8 -0
  98. package/dist/translations/ug.js +5 -0
  99. package/dist/translations/uk.d.ts +8 -0
  100. package/dist/translations/uk.js +5 -0
  101. package/dist/translations/ur.d.ts +8 -0
  102. package/dist/translations/ur.js +5 -0
  103. package/dist/translations/uz.d.ts +8 -0
  104. package/dist/translations/uz.js +5 -0
  105. package/dist/translations/vi.d.ts +8 -0
  106. package/dist/translations/vi.js +5 -0
  107. package/dist/translations/zh-cn.d.ts +8 -0
  108. package/dist/translations/zh-cn.js +5 -0
  109. package/dist/translations/zh.d.ts +8 -0
  110. package/dist/translations/zh.js +5 -0
  111. package/dist/types/augmentation.d.ts +4 -0
  112. package/dist/types/index.d.ts +4 -0
  113. package/dist/types/removeformat.d.ts +4 -0
  114. package/dist/types/removeformatcommand.d.ts +4 -0
  115. package/dist/types/removeformatediting.d.ts +4 -0
  116. package/dist/types/removeformatui.d.ts +4 -0
  117. package/package.json +2 -2
  118. package/dist/index.js +0 -207
  119. package/dist/index.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"pt-br":{"dictionary":{"Remove Format":"Remover Formatação"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
@@ -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,5 @@
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
+ export default {"pt":{"dictionary":{"Remove Format":"Remover formatação"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
@@ -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,5 @@
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
+ export default {"ro":{"dictionary":{"Remove Format":"Șterge formatare"},getPluralForm(n){return (n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"ru":{"dictionary":{"Remove Format":"Убрать форматирование"},getPluralForm(n){return (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);}}}
@@ -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,5 @@
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
+ export default {"sk":{"dictionary":{"Remove Format":"Vyčistiť formátovanie"},getPluralForm(n){return (n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);}}}
@@ -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,5 @@
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
+ export default {"sq":{"dictionary":{"Remove Format":"Largo formatimin"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"sr-latn":{"dictionary":{"Remove Format":"Ukloni formatiranje"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
@@ -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,5 @@
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
+ export default {"sr":{"dictionary":{"Remove Format":"Уклони форматирање"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
@@ -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,5 @@
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
+ export default {"sv":{"dictionary":{"Remove Format":"Radera formatering"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"th":{"dictionary":{"Remove Format":"ลบรูปแบบ"},getPluralForm(n){return 0;}}}
@@ -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,5 @@
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
+ export default {"tk":{"dictionary":{"Remove Format":"Formaty aýyryň"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"tr":{"dictionary":{"Remove Format":"Biçimlendirmeyi Kaldır"},getPluralForm(n){return (n > 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"ug":{"dictionary":{"Remove Format":"پىچىمنى چىقىرىۋەت"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"uk":{"dictionary":{"Remove Format":"Видалити форматування"},getPluralForm(n){return (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);}}}
@@ -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,5 @@
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
+ export default {"ur":{"dictionary":{"Remove Format":"فارمیٹ ہٹائیں"},getPluralForm(n){return (n != 1);}}}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from 'ckeditor5';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
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
+ export default {"uz":{"dictionary":{"Remove Format":"Formatlashni olib tashlash"},getPluralForm(n){return 0;}}}
@@ -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,5 @@
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
+ export default {"vi":{"dictionary":{"Remove Format":"Xóa định dang"},getPluralForm(n){return 0;}}}
@@ -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,5 @@
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
+ export default {"zh-cn":{"dictionary":{"Remove Format":"移除格式"},getPluralForm(n){return 0;}}}
@@ -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,5 @@
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
+ export default {"zh":{"dictionary":{"Remove Format":"移除格式"},getPluralForm(n){return 0;}}}
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-remove-format",
3
- "version": "41.3.0-alpha.0",
3
+ "version": "41.3.0-alpha.2",
4
4
  "description": "Remove format feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "41.3.0-alpha.0"
16
+ "ckeditor5": "41.3.0-alpha.2"
17
17
  },
18
18
  "author": "CKSource (http://cksource.com/)",
19
19
  "license": "GPL-2.0-or-later",
package/dist/index.js DELETED
@@ -1,207 +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
- import { Plugin, Command } from '@ckeditor/ckeditor5-core/dist/index.js';
6
- import { ButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';
7
- import { first } from '@ckeditor/ckeditor5-utils/dist/index.js';
8
-
9
- var removeFormatIcon = "<svg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z\"/></svg>";
10
-
11
- /**
12
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
13
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
14
- */
15
- /**
16
- * @module remove-format/removeformatui
17
- */
18
- const REMOVE_FORMAT = 'removeFormat';
19
- /**
20
- * The remove format UI plugin. It registers the `'removeFormat'` button which can be
21
- * used in the toolbar.
22
- */
23
- class RemoveFormatUI extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName() {
28
- return 'RemoveFormatUI';
29
- }
30
- /**
31
- * @inheritDoc
32
- */
33
- init() {
34
- const editor = this.editor;
35
- const t = editor.t;
36
- editor.ui.componentFactory.add(REMOVE_FORMAT, locale => {
37
- const command = editor.commands.get(REMOVE_FORMAT);
38
- const view = new ButtonView(locale);
39
- view.set({
40
- label: t('Remove Format'),
41
- icon: removeFormatIcon,
42
- tooltip: true
43
- });
44
- view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
45
- // Execute the command.
46
- this.listenTo(view, 'execute', () => {
47
- editor.execute(REMOVE_FORMAT);
48
- editor.editing.view.focus();
49
- });
50
- return view;
51
- });
52
- }
53
- }
54
-
55
- /**
56
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
57
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
58
- */
59
- /**
60
- * The remove format command.
61
- *
62
- * It is used by the {@link module:remove-format/removeformat~RemoveFormat remove format feature}
63
- * to clear the formatting in the selection.
64
- *
65
- * ```ts
66
- * editor.execute( 'removeFormat' );
67
- * ```
68
- */
69
- class RemoveFormatCommand extends Command {
70
- /**
71
- * @inheritDoc
72
- */
73
- refresh() {
74
- const model = this.editor.model;
75
- this.isEnabled = !!first(this._getFormattingItems(model.document.selection, model.schema));
76
- }
77
- /**
78
- * @inheritDoc
79
- */
80
- execute() {
81
- const model = this.editor.model;
82
- const schema = model.schema;
83
- model.change(writer => {
84
- for (const item of this._getFormattingItems(model.document.selection, schema)) {
85
- if (item.is('selection')) {
86
- for (const attributeName of this._getFormattingAttributes(item, schema)) {
87
- writer.removeSelectionAttribute(attributeName);
88
- }
89
- }
90
- else {
91
- // Workaround for items with multiple removable attributes. See
92
- // https://github.com/ckeditor/ckeditor5-remove-format/pull/1#pullrequestreview-220515609
93
- const itemRange = writer.createRangeOn(item);
94
- for (const attributeName of this._getFormattingAttributes(item, schema)) {
95
- writer.removeAttribute(attributeName, itemRange);
96
- }
97
- }
98
- }
99
- });
100
- }
101
- /**
102
- * Returns an iterable of items in a selection (including the selection itself) that have formatting model
103
- * attributes to be removed by the feature.
104
- *
105
- * @param schema The schema describing the item.
106
- */
107
- *_getFormattingItems(selection, schema) {
108
- const itemHasRemovableFormatting = (item) => {
109
- return !!first(this._getFormattingAttributes(item, schema));
110
- };
111
- // Check formatting on selected items that are not blocks.
112
- for (const curRange of selection.getRanges()) {
113
- for (const item of curRange.getItems()) {
114
- if (!schema.isBlock(item) && itemHasRemovableFormatting(item)) {
115
- yield item;
116
- }
117
- }
118
- }
119
- // Check formatting from selected blocks.
120
- for (const block of selection.getSelectedBlocks()) {
121
- if (itemHasRemovableFormatting(block)) {
122
- yield block;
123
- }
124
- }
125
- // Finally the selection might be formatted as well, so make sure to check it.
126
- if (itemHasRemovableFormatting(selection)) {
127
- yield selection;
128
- }
129
- }
130
- /**
131
- * Returns an iterable of formatting attributes of a given model item.
132
- *
133
- * **Note:** Formatting items have the `isFormatting` property set to `true`.
134
- *
135
- * @param schema The schema describing the item.
136
- * @returns The names of formatting attributes found in a given item.
137
- */
138
- *_getFormattingAttributes(item, schema) {
139
- for (const [attributeName] of item.getAttributes()) {
140
- const attributeProperties = schema.getAttributeProperties(attributeName);
141
- if (attributeProperties && attributeProperties.isFormatting) {
142
- yield attributeName;
143
- }
144
- }
145
- }
146
- }
147
-
148
- /**
149
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
150
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
151
- */
152
- /**
153
- * @module remove-format/removeformatediting
154
- */
155
- /**
156
- * The remove format editing plugin.
157
- *
158
- * It registers the {@link module:remove-format/removeformatcommand~RemoveFormatCommand removeFormat} command.
159
- */
160
- class RemoveFormatEditing extends Plugin {
161
- /**
162
- * @inheritDoc
163
- */
164
- static get pluginName() {
165
- return 'RemoveFormatEditing';
166
- }
167
- /**
168
- * @inheritDoc
169
- */
170
- init() {
171
- const editor = this.editor;
172
- editor.commands.add('removeFormat', new RemoveFormatCommand(editor));
173
- }
174
- }
175
-
176
- /**
177
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
178
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
179
- */
180
- /**
181
- * @module remove-format/removeformat
182
- */
183
- /**
184
- * The remove format plugin.
185
- *
186
- * This is a "glue" plugin which loads the {@link module:remove-format/removeformatediting~RemoveFormatEditing}
187
- * and {@link module:remove-format/removeformatui~RemoveFormatUI} plugins.
188
- *
189
- * For a detailed overview, check out the {@glink features/remove-format remove format} feature documentation.
190
- */
191
- class RemoveFormat extends Plugin {
192
- /**
193
- * @inheritDoc
194
- */
195
- static get requires() {
196
- return [RemoveFormatEditing, RemoveFormatUI];
197
- }
198
- /**
199
- * @inheritDoc
200
- */
201
- static get pluginName() {
202
- return 'RemoveFormat';
203
- }
204
- }
205
-
206
- export { RemoveFormat, RemoveFormatEditing, RemoveFormatUI };
207
- //# sourceMappingURL=index.js.map