@ckeditor/ckeditor5-clipboard 47.6.1 → 48.0.0-alpha.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 (108) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/index-editor.css +78 -17
  3. package/dist/index.css +75 -27
  4. package/dist/index.css.map +1 -1
  5. package/package.json +24 -44
  6. package/lang/contexts.json +0 -5
  7. package/lang/translations/af.po +0 -24
  8. package/lang/translations/ar.po +0 -24
  9. package/lang/translations/ast.po +0 -24
  10. package/lang/translations/az.po +0 -24
  11. package/lang/translations/be.po +0 -24
  12. package/lang/translations/bg.po +0 -24
  13. package/lang/translations/bn.po +0 -24
  14. package/lang/translations/bs.po +0 -24
  15. package/lang/translations/ca.po +0 -24
  16. package/lang/translations/cs.po +0 -24
  17. package/lang/translations/da.po +0 -24
  18. package/lang/translations/de-ch.po +0 -24
  19. package/lang/translations/de.po +0 -24
  20. package/lang/translations/el.po +0 -24
  21. package/lang/translations/en-au.po +0 -24
  22. package/lang/translations/en-gb.po +0 -24
  23. package/lang/translations/en.po +0 -24
  24. package/lang/translations/eo.po +0 -24
  25. package/lang/translations/es-co.po +0 -24
  26. package/lang/translations/es.po +0 -24
  27. package/lang/translations/et.po +0 -24
  28. package/lang/translations/eu.po +0 -24
  29. package/lang/translations/fa.po +0 -24
  30. package/lang/translations/fi.po +0 -24
  31. package/lang/translations/fr.po +0 -24
  32. package/lang/translations/gl.po +0 -24
  33. package/lang/translations/gu.po +0 -24
  34. package/lang/translations/he.po +0 -24
  35. package/lang/translations/hi.po +0 -24
  36. package/lang/translations/hr.po +0 -24
  37. package/lang/translations/hu.po +0 -24
  38. package/lang/translations/hy.po +0 -24
  39. package/lang/translations/id.po +0 -24
  40. package/lang/translations/it.po +0 -24
  41. package/lang/translations/ja.po +0 -24
  42. package/lang/translations/jv.po +0 -24
  43. package/lang/translations/kk.po +0 -24
  44. package/lang/translations/km.po +0 -24
  45. package/lang/translations/kn.po +0 -24
  46. package/lang/translations/ko.po +0 -24
  47. package/lang/translations/ku.po +0 -24
  48. package/lang/translations/lt.po +0 -24
  49. package/lang/translations/lv.po +0 -24
  50. package/lang/translations/ms.po +0 -24
  51. package/lang/translations/nb.po +0 -24
  52. package/lang/translations/ne.po +0 -24
  53. package/lang/translations/nl.po +0 -24
  54. package/lang/translations/no.po +0 -24
  55. package/lang/translations/oc.po +0 -24
  56. package/lang/translations/pl.po +0 -24
  57. package/lang/translations/pt-br.po +0 -24
  58. package/lang/translations/pt.po +0 -24
  59. package/lang/translations/ro.po +0 -24
  60. package/lang/translations/ru.po +0 -24
  61. package/lang/translations/si.po +0 -24
  62. package/lang/translations/sk.po +0 -24
  63. package/lang/translations/sl.po +0 -24
  64. package/lang/translations/sq.po +0 -24
  65. package/lang/translations/sr-latn.po +0 -24
  66. package/lang/translations/sr.po +0 -24
  67. package/lang/translations/sv.po +0 -24
  68. package/lang/translations/th.po +0 -24
  69. package/lang/translations/ti.po +0 -24
  70. package/lang/translations/tk.po +0 -24
  71. package/lang/translations/tr.po +0 -24
  72. package/lang/translations/tt.po +0 -24
  73. package/lang/translations/ug.po +0 -24
  74. package/lang/translations/uk.po +0 -24
  75. package/lang/translations/ur.po +0 -24
  76. package/lang/translations/uz.po +0 -24
  77. package/lang/translations/vi.po +0 -24
  78. package/lang/translations/zh-cn.po +0 -24
  79. package/lang/translations/zh.po +0 -24
  80. package/src/augmentation.js +0 -5
  81. package/src/clipboard.js +0 -66
  82. package/src/clipboardmarkersutils.js +0 -500
  83. package/src/clipboardobserver.js +0 -75
  84. package/src/clipboardpipeline.js +0 -287
  85. package/src/dragdrop.js +0 -619
  86. package/src/dragdropblocktoolbar.js +0 -124
  87. package/src/dragdroptarget.js +0 -390
  88. package/src/index.js +0 -23
  89. package/src/lineview.js +0 -46
  90. package/src/pasteplaintext.js +0 -102
  91. package/src/utils/normalizeclipboarddata.js +0 -28
  92. package/src/utils/plaintexttohtml.js +0 -39
  93. package/src/utils/viewtoplaintext.js +0 -96
  94. package/theme/clipboard.css +0 -39
  95. /package/{src → dist}/augmentation.d.ts +0 -0
  96. /package/{src → dist}/clipboard.d.ts +0 -0
  97. /package/{src → dist}/clipboardmarkersutils.d.ts +0 -0
  98. /package/{src → dist}/clipboardobserver.d.ts +0 -0
  99. /package/{src → dist}/clipboardpipeline.d.ts +0 -0
  100. /package/{src → dist}/dragdrop.d.ts +0 -0
  101. /package/{src → dist}/dragdropblocktoolbar.d.ts +0 -0
  102. /package/{src → dist}/dragdroptarget.d.ts +0 -0
  103. /package/{src → dist}/index.d.ts +0 -0
  104. /package/{src → dist}/lineview.d.ts +0 -0
  105. /package/{src → dist}/pasteplaintext.d.ts +0 -0
  106. /package/{src → dist}/utils/normalizeclipboarddata.d.ts +0 -0
  107. /package/{src → dist}/utils/plaintexttohtml.d.ts +0 -0
  108. /package/{src → dist}/utils/viewtoplaintext.d.ts +0 -0
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: th\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "คัดลอกเนื้อหาที่เลือกเอาไว้"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "วางเนื้อหา"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "วางเนื้อหาเป็นข้อความธรรมดา"
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: ti\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: tk\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: tr\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "Seçilen içeriği kopyala"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "İçeriği yapıştır"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "İçeriği düz metin olarak yapıştır"
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: tt\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: ug\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: uk\n"
11
- "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"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "Копіювати вибраний вміст"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "Вставити вміст"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "Вставити вміст як простий текст"
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: ur\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: uz\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr ""
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr ""
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr ""
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: vi\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "Sao chép nội dung đã chọn"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "Dán nội dung"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "Dán nội dung dưới dạng văn bản thuần túy"
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: zh_CN\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "复制选定的内容"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "粘贴内容"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "将内容粘贴为纯文本"
@@ -1,24 +0,0 @@
1
- # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
- #
3
- # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
- #
5
- # Check out the official contributor's guide:
6
- # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
- #
8
- msgid ""
9
- msgstr ""
10
- "Language: zh_TW\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for copying selected content."
15
- msgid "Copy selected content"
16
- msgstr "複製所選內容"
17
-
18
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content."
19
- msgid "Paste content"
20
- msgstr "貼上內容"
21
-
22
- msgctxt "Keystroke description for assistive technologies: keystroke for pasting content as plain text."
23
- msgid "Paste content as plain text"
24
- msgstr "將內容貼上為純文字"
@@ -1,5 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- export {};
package/src/clipboard.js DELETED
@@ -1,66 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- /**
6
- * @module clipboard/clipboard
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { ClipboardPipeline } from './clipboardpipeline.js';
10
- import { DragDrop } from './dragdrop.js';
11
- import { PastePlainText } from './pasteplaintext.js';
12
- import { ClipboardMarkersUtils } from './clipboardmarkersutils.js';
13
- /**
14
- * The clipboard feature.
15
- *
16
- * Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
17
- *
18
- * This is a "glue" plugin which loads the following plugins:
19
- * * {@link module:clipboard/clipboardpipeline~ClipboardPipeline}
20
- * * {@link module:clipboard/dragdrop~DragDrop}
21
- * * {@link module:clipboard/pasteplaintext~PastePlainText}
22
- */
23
- export class Clipboard extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName() {
28
- return 'Clipboard';
29
- }
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isOfficialPlugin() {
34
- return true;
35
- }
36
- /**
37
- * @inheritDoc
38
- */
39
- static get requires() {
40
- return [ClipboardMarkersUtils, ClipboardPipeline, DragDrop, PastePlainText];
41
- }
42
- /**
43
- * @inheritDoc
44
- */
45
- init() {
46
- const editor = this.editor;
47
- const t = this.editor.t;
48
- // Add the information about the keystrokes to the accessibility database.
49
- editor.accessibility.addKeystrokeInfos({
50
- keystrokes: [
51
- {
52
- label: t('Copy selected content'),
53
- keystroke: 'CTRL+C'
54
- },
55
- {
56
- label: t('Paste content'),
57
- keystroke: 'CTRL+V'
58
- },
59
- {
60
- label: t('Paste content as plain text'),
61
- keystroke: 'CTRL+SHIFT+V'
62
- }
63
- ]
64
- });
65
- }
66
- }