@ckeditor/ckeditor5-media-embed 47.6.1 → 48.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/ckeditor5-metadata.json +3 -3
  2. package/{src → dist}/automediaembed.d.ts +4 -4
  3. package/{src → dist}/converters.d.ts +1 -1
  4. package/dist/index-content.css +4 -4
  5. package/dist/index-editor.css +136 -75
  6. package/dist/index.css +128 -116
  7. package/dist/index.css.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/{src → dist}/mediaembed.d.ts +2 -2
  11. package/{src → dist}/mediaembedcommand.d.ts +1 -1
  12. package/{src → dist}/mediaembedconfig.d.ts +2 -2
  13. package/{src → dist}/mediaembedediting.d.ts +1 -1
  14. package/{src → dist}/mediaembedtoolbar.d.ts +2 -2
  15. package/{src → dist}/mediaembedui.d.ts +2 -2
  16. package/{src → dist}/mediaregistry.d.ts +2 -2
  17. package/{src → dist}/ui/mediaformview.d.ts +2 -3
  18. package/{src → dist}/utils.d.ts +1 -1
  19. package/package.json +27 -51
  20. package/build/media-embed.js +0 -5
  21. package/build/translations/af.js +0 -1
  22. package/build/translations/ar.js +0 -1
  23. package/build/translations/ast.js +0 -1
  24. package/build/translations/az.js +0 -1
  25. package/build/translations/be.js +0 -1
  26. package/build/translations/bg.js +0 -1
  27. package/build/translations/bn.js +0 -1
  28. package/build/translations/bs.js +0 -1
  29. package/build/translations/ca.js +0 -1
  30. package/build/translations/cs.js +0 -1
  31. package/build/translations/da.js +0 -1
  32. package/build/translations/de-ch.js +0 -1
  33. package/build/translations/de.js +0 -1
  34. package/build/translations/el.js +0 -1
  35. package/build/translations/en-au.js +0 -1
  36. package/build/translations/en-gb.js +0 -1
  37. package/build/translations/eo.js +0 -1
  38. package/build/translations/es-co.js +0 -1
  39. package/build/translations/es.js +0 -1
  40. package/build/translations/et.js +0 -1
  41. package/build/translations/eu.js +0 -1
  42. package/build/translations/fa.js +0 -1
  43. package/build/translations/fi.js +0 -1
  44. package/build/translations/fr.js +0 -1
  45. package/build/translations/gl.js +0 -1
  46. package/build/translations/gu.js +0 -1
  47. package/build/translations/he.js +0 -1
  48. package/build/translations/hi.js +0 -1
  49. package/build/translations/hr.js +0 -1
  50. package/build/translations/hu.js +0 -1
  51. package/build/translations/hy.js +0 -1
  52. package/build/translations/id.js +0 -1
  53. package/build/translations/it.js +0 -1
  54. package/build/translations/ja.js +0 -1
  55. package/build/translations/jv.js +0 -1
  56. package/build/translations/kk.js +0 -1
  57. package/build/translations/km.js +0 -1
  58. package/build/translations/kn.js +0 -1
  59. package/build/translations/ko.js +0 -1
  60. package/build/translations/ku.js +0 -1
  61. package/build/translations/lt.js +0 -1
  62. package/build/translations/lv.js +0 -1
  63. package/build/translations/ms.js +0 -1
  64. package/build/translations/nb.js +0 -1
  65. package/build/translations/ne.js +0 -1
  66. package/build/translations/nl.js +0 -1
  67. package/build/translations/no.js +0 -1
  68. package/build/translations/oc.js +0 -1
  69. package/build/translations/pl.js +0 -1
  70. package/build/translations/pt-br.js +0 -1
  71. package/build/translations/pt.js +0 -1
  72. package/build/translations/ro.js +0 -1
  73. package/build/translations/ru.js +0 -1
  74. package/build/translations/si.js +0 -1
  75. package/build/translations/sk.js +0 -1
  76. package/build/translations/sl.js +0 -1
  77. package/build/translations/sq.js +0 -1
  78. package/build/translations/sr-latn.js +0 -1
  79. package/build/translations/sr.js +0 -1
  80. package/build/translations/sv.js +0 -1
  81. package/build/translations/th.js +0 -1
  82. package/build/translations/ti.js +0 -1
  83. package/build/translations/tk.js +0 -1
  84. package/build/translations/tr.js +0 -1
  85. package/build/translations/tt.js +0 -1
  86. package/build/translations/ug.js +0 -1
  87. package/build/translations/uk.js +0 -1
  88. package/build/translations/ur.js +0 -1
  89. package/build/translations/uz.js +0 -1
  90. package/build/translations/vi.js +0 -1
  91. package/build/translations/zh-cn.js +0 -1
  92. package/build/translations/zh.js +0 -1
  93. package/lang/contexts.json +0 -13
  94. package/lang/translations/af.po +0 -56
  95. package/lang/translations/ar.po +0 -56
  96. package/lang/translations/ast.po +0 -56
  97. package/lang/translations/az.po +0 -56
  98. package/lang/translations/be.po +0 -56
  99. package/lang/translations/bg.po +0 -56
  100. package/lang/translations/bn.po +0 -56
  101. package/lang/translations/bs.po +0 -56
  102. package/lang/translations/ca.po +0 -56
  103. package/lang/translations/cs.po +0 -56
  104. package/lang/translations/da.po +0 -56
  105. package/lang/translations/de-ch.po +0 -56
  106. package/lang/translations/de.po +0 -56
  107. package/lang/translations/el.po +0 -56
  108. package/lang/translations/en-au.po +0 -56
  109. package/lang/translations/en-gb.po +0 -56
  110. package/lang/translations/en.po +0 -56
  111. package/lang/translations/eo.po +0 -56
  112. package/lang/translations/es-co.po +0 -56
  113. package/lang/translations/es.po +0 -56
  114. package/lang/translations/et.po +0 -56
  115. package/lang/translations/eu.po +0 -56
  116. package/lang/translations/fa.po +0 -56
  117. package/lang/translations/fi.po +0 -56
  118. package/lang/translations/fr.po +0 -56
  119. package/lang/translations/gl.po +0 -56
  120. package/lang/translations/gu.po +0 -56
  121. package/lang/translations/he.po +0 -56
  122. package/lang/translations/hi.po +0 -56
  123. package/lang/translations/hr.po +0 -56
  124. package/lang/translations/hu.po +0 -56
  125. package/lang/translations/hy.po +0 -56
  126. package/lang/translations/id.po +0 -56
  127. package/lang/translations/it.po +0 -56
  128. package/lang/translations/ja.po +0 -56
  129. package/lang/translations/jv.po +0 -56
  130. package/lang/translations/kk.po +0 -56
  131. package/lang/translations/km.po +0 -56
  132. package/lang/translations/kn.po +0 -56
  133. package/lang/translations/ko.po +0 -56
  134. package/lang/translations/ku.po +0 -56
  135. package/lang/translations/lt.po +0 -56
  136. package/lang/translations/lv.po +0 -56
  137. package/lang/translations/ms.po +0 -56
  138. package/lang/translations/nb.po +0 -56
  139. package/lang/translations/ne.po +0 -56
  140. package/lang/translations/nl.po +0 -56
  141. package/lang/translations/no.po +0 -56
  142. package/lang/translations/oc.po +0 -56
  143. package/lang/translations/pl.po +0 -56
  144. package/lang/translations/pt-br.po +0 -56
  145. package/lang/translations/pt.po +0 -56
  146. package/lang/translations/ro.po +0 -56
  147. package/lang/translations/ru.po +0 -56
  148. package/lang/translations/si.po +0 -56
  149. package/lang/translations/sk.po +0 -56
  150. package/lang/translations/sl.po +0 -56
  151. package/lang/translations/sq.po +0 -56
  152. package/lang/translations/sr-latn.po +0 -56
  153. package/lang/translations/sr.po +0 -56
  154. package/lang/translations/sv.po +0 -56
  155. package/lang/translations/th.po +0 -56
  156. package/lang/translations/ti.po +0 -56
  157. package/lang/translations/tk.po +0 -56
  158. package/lang/translations/tr.po +0 -56
  159. package/lang/translations/tt.po +0 -56
  160. package/lang/translations/ug.po +0 -56
  161. package/lang/translations/uk.po +0 -56
  162. package/lang/translations/ur.po +0 -56
  163. package/lang/translations/uz.po +0 -56
  164. package/lang/translations/vi.po +0 -56
  165. package/lang/translations/zh-cn.po +0 -56
  166. package/lang/translations/zh.po +0 -56
  167. package/src/augmentation.js +0 -5
  168. package/src/automediaembed.js +0 -147
  169. package/src/converters.js +0 -55
  170. package/src/index.js +0 -18
  171. package/src/mediaembed.js +0 -44
  172. package/src/mediaembedcommand.js +0 -71
  173. package/src/mediaembedconfig.js +0 -5
  174. package/src/mediaembedediting.js +0 -252
  175. package/src/mediaembedtoolbar.js +0 -50
  176. package/src/mediaembedui.js +0 -134
  177. package/src/mediaregistry.js +0 -262
  178. package/src/ui/mediaformview.js +0 -157
  179. package/src/utils.js +0 -96
  180. package/theme/mediaembed.css +0 -23
  181. package/theme/mediaembedediting.css +0 -48
  182. package/theme/mediaform.css +0 -39
  183. /package/{src → dist}/augmentation.d.ts +0 -0
  184. /package/{src → dist}/index.d.ts +0 -0
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr ""
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr ""
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr ""
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr ""
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr ""
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr ""
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr ""
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr ""
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr ""
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr ""
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr ""
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr ""
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr ""
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr ""
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr ""
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr ""
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr ""
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr ""
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr ""
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr ""
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr ""
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr ""
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "медіа віджет"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "Медіа URL"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "Вставте URL на медіа в інпут."
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "Вставте URL у вміст для швидкого перекладу."
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "URL не повинен бути порожнім."
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "Даний медіа URL не підтримується."
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "Вставити медіа"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr "Медіа"
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "Панель інструментів медіа"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr "Відкрити медіа у новій вкладці"
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr "Вбудувати медіа"
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "آلۂ میڈیا"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "میڈیا یو آر ایل"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "میڈیا یو آر ایل کو چسپاں کریں"
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "نکتہ : یو آر ایل کو جلد ضم کرنے کے لیے ربط مواد میں چسپاں کریں"
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "یو آر ایل خالی نہیں ہونا چاہیے۔"
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "میڈیا یو آر ایل معاونت یافتہ نہیں"
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "میڈیا نصب کریں"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr ""
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "آلہ جات برائے میڈیا"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr ""
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr ""
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "media vidjeti"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "Media URL manzili"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "Media URL manzilini kiritish maydoniga joylashtiring."
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "Maslahat: Tez kiritish uchun URL manzilini kontentga joylashtiring."
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "URL bo'sh bo'lmasligi kerak."
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "Ushbu media URL manzili qo‘llab-quvvatlanmaydi."
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "Mediani joylashtiring"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr ""
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "Media asboblar paneli"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr ""
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr ""
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "tiện ích đa phương tiện"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "Đường dẫn đa phương tiện"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "Dán đường dẫn đa phương tiện vào trường"
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "Mẹo: Dán đường dẫn vào nội dung để nhúng ngay"
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "Đường dẫn không được để trống"
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "Đường dẫn đa phương tiện không hỗ trợ"
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "Chèn đa phương tiện"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr "Phương tiện"
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "Thanh công cụ đa phương tiện"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr "Mở nội dung nghe nhìn trong tab mới"
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr "Nhúng tệp đa phương tiện"
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "媒体小部件"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "媒体URL"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "在输入中粘贴媒体URL"
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "提示:将URL粘贴到内容中可更快地嵌入"
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "URL不可以为空。"
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "不支持此媒体URL。"
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "插入媒体"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr "媒体"
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "媒体工具栏"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr "在新标签页打开媒体"
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- msgstr "已嵌入媒体"
@@ -1,56 +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 "Label for the media widget."
15
- msgid "media widget"
16
- msgstr "影音小工具"
17
-
18
- msgctxt "Label for the URL input in the Media Embed URL editing balloon."
19
- msgid "Media URL"
20
- msgstr "影音網址"
21
-
22
- msgctxt "The help text displayed under the media URL input helping users to discover the interface."
23
- msgid "Paste the media URL in the input."
24
- msgstr "在輸入框貼上影音網址。"
25
-
26
- msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
27
- msgid "Tip: Paste the URL into the content to embed faster."
28
- msgstr "提示:在內容貼上網址更快崁入。"
29
-
30
- msgctxt "An error message that informs about an empty value in the URL input."
31
- msgid "The URL must not be empty."
32
- msgstr "網址不能空白。"
33
-
34
- msgctxt "An error message that informs about unsupported media URL."
35
- msgid "This media URL is not supported."
36
- msgstr "不支援此影音網址。"
37
-
38
- msgctxt "Toolbar button tooltip for the Media Embed feature."
39
- msgid "Insert media"
40
- msgstr "插入影音"
41
-
42
- msgctxt "Label describing type of the inserted content (e.g. 'insert media')."
43
- msgid "Media"
44
- msgstr "媒體"
45
-
46
- msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
47
- msgid "Media toolbar"
48
- msgstr "影音工具"
49
-
50
- msgctxt "A tooltip displayed when the user hovers a non-previewable media URL in the editor content."
51
- msgid "Open media in new tab"
52
- msgstr "在新分頁打開媒體"
53
-
54
- msgctxt "The label for the Media Embed balloon."
55
- msgid "Media embed"
56
- 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 {};
@@ -1,147 +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 media-embed/automediaembed
7
- */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { ModelLiveRange, ModelLivePosition } from 'ckeditor5/src/engine.js';
10
- import { Clipboard } from 'ckeditor5/src/clipboard.js';
11
- import { Delete } from 'ckeditor5/src/typing.js';
12
- import { Undo } from 'ckeditor5/src/undo.js';
13
- import { global } from 'ckeditor5/src/utils.js';
14
- import { MediaEmbedEditing } from './mediaembedediting.js';
15
- import { insertMedia } from './utils.js';
16
- const URL_REGEXP = /^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;
17
- /**
18
- * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
19
- * them shortly after they are injected into the document.
20
- */
21
- export class AutoMediaEmbed extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires() {
26
- return [Clipboard, Delete, Undo];
27
- }
28
- /**
29
- * @inheritDoc
30
- */
31
- static get pluginName() {
32
- return 'AutoMediaEmbed';
33
- }
34
- /**
35
- * @inheritDoc
36
- */
37
- static get isOfficialPlugin() {
38
- return true;
39
- }
40
- /**
41
- * The paste–to–embed `setTimeout` ID. Stored as a property to allow
42
- * cleaning of the timeout.
43
- */
44
- _timeoutId;
45
- /**
46
- * The position where the `<media>` element will be inserted after the timeout,
47
- * determined each time the new content is pasted into the document.
48
- */
49
- _positionToInsert;
50
- /**
51
- * @inheritDoc
52
- */
53
- constructor(editor) {
54
- super(editor);
55
- this._timeoutId = null;
56
- this._positionToInsert = null;
57
- }
58
- /**
59
- * @inheritDoc
60
- */
61
- init() {
62
- const editor = this.editor;
63
- const modelDocument = editor.model.document;
64
- // We need to listen on `Clipboard#inputTransformation` because we need to save positions of selection.
65
- // After pasting, the content between those positions will be checked for a URL that could be transformed
66
- // into media.
67
- const clipboardPipeline = editor.plugins.get('ClipboardPipeline');
68
- this.listenTo(clipboardPipeline, 'inputTransformation', () => {
69
- const firstRange = modelDocument.selection.getFirstRange();
70
- const leftLivePosition = ModelLivePosition.fromPosition(firstRange.start);
71
- leftLivePosition.stickiness = 'toPrevious';
72
- const rightLivePosition = ModelLivePosition.fromPosition(firstRange.end);
73
- rightLivePosition.stickiness = 'toNext';
74
- modelDocument.once('change:data', () => {
75
- this._embedMediaBetweenPositions(leftLivePosition, rightLivePosition);
76
- leftLivePosition.detach();
77
- rightLivePosition.detach();
78
- }, { priority: 'high' });
79
- });
80
- const undoCommand = editor.commands.get('undo');
81
- undoCommand.on('execute', () => {
82
- if (this._timeoutId) {
83
- global.window.clearTimeout(this._timeoutId);
84
- this._positionToInsert.detach();
85
- this._timeoutId = null;
86
- this._positionToInsert = null;
87
- }
88
- }, { priority: 'high' });
89
- }
90
- /**
91
- * Analyzes the part of the document between provided positions in search for a URL representing media.
92
- * When the URL is found, it is automatically converted into media.
93
- *
94
- * @param leftPosition Left position of the selection.
95
- * @param rightPosition Right position of the selection.
96
- */
97
- _embedMediaBetweenPositions(leftPosition, rightPosition) {
98
- const editor = this.editor;
99
- const mediaRegistry = editor.plugins.get(MediaEmbedEditing).registry;
100
- // TODO: Use marker instead of ModelLiveRange & LivePositions.
101
- const urlRange = new ModelLiveRange(leftPosition, rightPosition);
102
- const walker = urlRange.getWalker({ ignoreElementEnd: true });
103
- let url = '';
104
- for (const node of walker) {
105
- if (node.item.is('$textProxy')) {
106
- url += node.item.data;
107
- }
108
- }
109
- url = url.trim();
110
- // If the URL does not match to universal URL regexp, let's skip that.
111
- if (!url.match(URL_REGEXP)) {
112
- urlRange.detach();
113
- return;
114
- }
115
- // If the URL represents a media, let's use it.
116
- if (!mediaRegistry.hasMedia(url)) {
117
- urlRange.detach();
118
- return;
119
- }
120
- const mediaEmbedCommand = editor.commands.get('mediaEmbed');
121
- // Do not anything if media element cannot be inserted at the current position (#47).
122
- if (!mediaEmbedCommand.isEnabled) {
123
- urlRange.detach();
124
- return;
125
- }
126
- // Position won't be available in the `setTimeout` function so let's clone it.
127
- this._positionToInsert = ModelLivePosition.fromPosition(leftPosition);
128
- // This action mustn't be executed if undo was called between pasting and auto-embedding.
129
- this._timeoutId = global.window.setTimeout(() => {
130
- editor.model.change(writer => {
131
- this._timeoutId = null;
132
- writer.remove(urlRange);
133
- urlRange.detach();
134
- let insertionPosition = null;
135
- // Check if position where the media element should be inserted is still valid.
136
- // Otherwise leave it as undefined to use document.selection - default behavior of model.insertContent().
137
- if (this._positionToInsert.root.rootName !== '$graveyard') {
138
- insertionPosition = this._positionToInsert;
139
- }
140
- insertMedia(editor.model, url, insertionPosition, false);
141
- this._positionToInsert.detach();
142
- this._positionToInsert = null;
143
- });
144
- editor.plugins.get(Delete).requestUndoOnBackspace();
145
- }, 100);
146
- }
147
- }
package/src/converters.js DELETED
@@ -1,55 +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
- * Returns a function that converts the model "url" attribute to the view representation.
7
- *
8
- * Depending on the configuration, the view representation can be "semantic" (for the data pipeline):
9
- *
10
- * ```html
11
- * <figure class="media">
12
- * <oembed url="foo"></oembed>
13
- * </figure>
14
- * ```
15
- *
16
- * or "non-semantic" (for the editing view pipeline):
17
- *
18
- * ```html
19
- * <figure class="media">
20
- * <div data-oembed-url="foo">[ non-semantic media preview for "foo" ]</div>
21
- * </figure>
22
- * ```
23
- *
24
- * **Note:** Changing the model "url" attribute replaces the entire content of the
25
- * `<figure>` in the view.
26
- *
27
- * @param registry The registry providing
28
- * the media and their content.
29
- * @param options options object with following properties:
30
- * - elementName When set, overrides the default element name for semantic media embeds.
31
- * - renderMediaPreview When `true`, the converter will create the view in the non-semantic form.
32
- * - renderForEditingView When `true`, the converter will create a view specific for the
33
- * editing pipeline (e.g. including CSS classes, content placeholders).
34
- *
35
- * @internal
36
- */
37
- export function modelToViewUrlAttributeConverter(registry, options) {
38
- const converter = (evt, data, conversionApi) => {
39
- if (!conversionApi.consumable.consume(data.item, evt.name)) {
40
- return;
41
- }
42
- const url = data.attributeNewValue;
43
- const viewWriter = conversionApi.writer;
44
- const figure = conversionApi.mapper.toViewElement(data.item);
45
- const mediaContentElement = [...figure.getChildren()]
46
- .find(child => child.getCustomProperty('media-content'));
47
- // TODO: removing the wrapper and creating it from scratch is a hack. We can do better than that.
48
- viewWriter.remove(mediaContentElement);
49
- const mediaViewElement = registry.getMediaViewElement(viewWriter, url, options);
50
- viewWriter.insert(viewWriter.createPositionAt(figure, 0), mediaViewElement);
51
- };
52
- return dispatcher => {
53
- dispatcher.on('attribute:url:media', converter);
54
- };
55
- }