@ckeditor/ckeditor5-media-embed 39.0.1 → 40.0.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 (85) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -3
  3. package/build/media-embed.js.map +1 -0
  4. package/build/translations/pt-br.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de-ch.po +1 -0
  13. package/lang/translations/de.po +1 -0
  14. package/lang/translations/el.po +1 -0
  15. package/lang/translations/en-au.po +1 -0
  16. package/lang/translations/en-gb.po +1 -0
  17. package/lang/translations/en.po +1 -0
  18. package/lang/translations/es.po +1 -0
  19. package/lang/translations/et.po +1 -0
  20. package/lang/translations/fa.po +1 -0
  21. package/lang/translations/fi.po +1 -0
  22. package/lang/translations/fr.po +1 -0
  23. package/lang/translations/gl.po +1 -0
  24. package/lang/translations/he.po +1 -0
  25. package/lang/translations/hi.po +1 -0
  26. package/lang/translations/hr.po +1 -0
  27. package/lang/translations/hu.po +1 -0
  28. package/lang/translations/id.po +1 -0
  29. package/lang/translations/it.po +1 -0
  30. package/lang/translations/ja.po +1 -0
  31. package/lang/translations/ko.po +1 -0
  32. package/lang/translations/ku.po +1 -0
  33. package/lang/translations/lt.po +1 -0
  34. package/lang/translations/lv.po +1 -0
  35. package/lang/translations/ms.po +1 -0
  36. package/lang/translations/ne.po +1 -0
  37. package/lang/translations/nl.po +1 -0
  38. package/lang/translations/no.po +1 -0
  39. package/lang/translations/pl.po +1 -0
  40. package/lang/translations/pt-br.po +2 -1
  41. package/lang/translations/pt.po +1 -0
  42. package/lang/translations/ro.po +1 -0
  43. package/lang/translations/ru.po +1 -0
  44. package/lang/translations/sk.po +1 -0
  45. package/lang/translations/sq.po +1 -0
  46. package/lang/translations/sr-latn.po +1 -0
  47. package/lang/translations/sr.po +1 -0
  48. package/lang/translations/sv.po +1 -0
  49. package/lang/translations/th.po +1 -0
  50. package/lang/translations/tk.po +1 -0
  51. package/lang/translations/tr.po +1 -0
  52. package/lang/translations/uk.po +1 -0
  53. package/lang/translations/ur.po +1 -0
  54. package/lang/translations/uz.po +1 -0
  55. package/lang/translations/vi.po +1 -0
  56. package/lang/translations/zh-cn.po +1 -0
  57. package/lang/translations/zh.po +1 -0
  58. package/package.json +3 -7
  59. package/src/augmentation.d.ts +25 -25
  60. package/src/augmentation.js +5 -5
  61. package/src/automediaembed.d.ts +51 -51
  62. package/src/automediaembed.js +131 -131
  63. package/src/converters.d.ts +38 -38
  64. package/src/converters.js +53 -53
  65. package/src/index.d.ts +15 -15
  66. package/src/index.js +13 -13
  67. package/src/mediaembed.d.ts +34 -34
  68. package/src/mediaembed.js +38 -38
  69. package/src/mediaembedcommand.d.ts +36 -36
  70. package/src/mediaembedcommand.js +71 -71
  71. package/src/mediaembedconfig.d.ts +278 -278
  72. package/src/mediaembedconfig.js +5 -5
  73. package/src/mediaembedediting.d.ts +31 -31
  74. package/src/mediaembedediting.js +231 -231
  75. package/src/mediaembedtoolbar.d.ts +30 -30
  76. package/src/mediaembedtoolbar.js +44 -44
  77. package/src/mediaembedui.d.ts +27 -27
  78. package/src/mediaembedui.js +99 -99
  79. package/src/mediaregistry.d.ts +66 -66
  80. package/src/mediaregistry.js +232 -232
  81. package/src/ui/mediaformview.d.ts +115 -115
  82. package/src/ui/mediaformview.js +194 -194
  83. package/src/utils.d.ts +67 -67
  84. package/src/utils.js +85 -85
  85. package/theme/icons/media/twitter.svg +0 -0
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n"
16
16
  "Language: hr\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n"
16
16
  "Language: hu\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n"
16
16
  "Language: id\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n"
16
16
  "Language: it\n"
17
17
  "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n"
16
16
  "Language: ja\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n"
16
16
  "Language: ko\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n"
16
16
  "Language: ku\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n"
16
16
  "Language: lt\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n"
16
16
  "Language: lv\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n"
16
16
  "Language: ms\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n"
16
16
  "Language: ne_NP\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n"
16
16
  "Language: nl\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n"
16
16
  "Language: no\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n"
16
16
  "Language: pl\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -38,7 +39,7 @@ msgstr "A URL não pode ficar em branco."
38
39
 
39
40
  msgctxt "An error message that informs about unsupported media URL."
40
41
  msgid "This media URL is not supported."
41
- msgstr "A URL desta mídia não é suportada."
42
+ msgstr "Esta URL de mídia não é suportada."
42
43
 
43
44
  msgctxt "Toolbar button tooltip for the Media Embed feature."
44
45
  msgid "Insert media"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
16
16
  "Language: pt\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
16
16
  "Language: ro\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
16
16
  "Language: ru\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
16
  "Language: sk\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
16
16
  "Language: sq\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
16
  "Language: sr@latin\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
16
  "Language: sr\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
16
  "Language: sv\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
16
  "Language: th\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
16
16
  "Language: tk\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
16
  "Language: tr\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
16
  "Language: uk\n"
17
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
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
16
16
  "Language: ur\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
16
16
  "Language: uz\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
16
  "Language: vi\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
16
  "Language: zh_CN\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
@@ -15,6 +15,7 @@ msgstr ""
15
15
  "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
16
  "Language: zh_TW\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
18
19
 
19
20
  msgctxt "Label for the media widget."
20
21
  msgid "media widget"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-media-embed",
3
- "version": "39.0.1",
3
+ "version": "40.0.0",
4
4
  "description": "Media embed feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,12 +12,8 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "39.0.1",
16
- "ckeditor5": "39.0.1"
17
- },
18
- "engines": {
19
- "node": ">=16.0.0",
20
- "npm": ">=5.7.1"
15
+ "@ckeditor/ckeditor5-ui": "40.0.0",
16
+ "ckeditor5": "40.0.0"
21
17
  },
22
18
  "author": "CKSource (http://cksource.com/)",
23
19
  "license": "GPL-2.0-or-later",
@@ -1,25 +1,25 @@
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 { MediaEmbedConfig, AutoMediaEmbed, MediaEmbed, MediaEmbedEditing, MediaEmbedToolbar, MediaEmbedUI, MediaEmbedCommand } from './index';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the {@link module:media-embed/mediaembed~MediaEmbed} feature.
10
- *
11
- * Read more in {@link module:media-embed/mediaembedconfig~MediaEmbedConfig}.
12
- */
13
- mediaEmbed?: MediaEmbedConfig;
14
- }
15
- interface PluginsMap {
16
- [AutoMediaEmbed.pluginName]: AutoMediaEmbed;
17
- [MediaEmbed.pluginName]: MediaEmbed;
18
- [MediaEmbedEditing.pluginName]: MediaEmbedEditing;
19
- [MediaEmbedToolbar.pluginName]: MediaEmbedToolbar;
20
- [MediaEmbedUI.pluginName]: MediaEmbedUI;
21
- }
22
- interface CommandsMap {
23
- mediaEmbed: MediaEmbedCommand;
24
- }
25
- }
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 { MediaEmbedConfig, AutoMediaEmbed, MediaEmbed, MediaEmbedEditing, MediaEmbedToolbar, MediaEmbedUI, MediaEmbedCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:media-embed/mediaembed~MediaEmbed} feature.
10
+ *
11
+ * Read more in {@link module:media-embed/mediaembedconfig~MediaEmbedConfig}.
12
+ */
13
+ mediaEmbed?: MediaEmbedConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [AutoMediaEmbed.pluginName]: AutoMediaEmbed;
17
+ [MediaEmbed.pluginName]: MediaEmbed;
18
+ [MediaEmbedEditing.pluginName]: MediaEmbedEditing;
19
+ [MediaEmbedToolbar.pluginName]: MediaEmbedToolbar;
20
+ [MediaEmbedUI.pluginName]: MediaEmbedUI;
21
+ }
22
+ interface CommandsMap {
23
+ mediaEmbed: MediaEmbedCommand;
24
+ }
25
+ }
@@ -1,5 +1,5 @@
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
- export {};
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
+ export {};
@@ -1,51 +1,51 @@
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 media-embed/automediaembed
7
- */
8
- import { type Editor, Plugin } from 'ckeditor5/src/core';
9
- import { Clipboard } from 'ckeditor5/src/clipboard';
10
- import { Delete } from 'ckeditor5/src/typing';
11
- import { Undo } from 'ckeditor5/src/undo';
12
- /**
13
- * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
14
- * them shortly after they are injected into the document.
15
- */
16
- export default class AutoMediaEmbed extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get requires(): readonly [typeof Clipboard, typeof Delete, typeof Undo];
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "AutoMediaEmbed";
25
- /**
26
- * The paste–to–embed `setTimeout` ID. Stored as a property to allow
27
- * cleaning of the timeout.
28
- */
29
- private _timeoutId;
30
- /**
31
- * The position where the `<media>` element will be inserted after the timeout,
32
- * determined each time the new content is pasted into the document.
33
- */
34
- private _positionToInsert;
35
- /**
36
- * @inheritDoc
37
- */
38
- constructor(editor: Editor);
39
- /**
40
- * @inheritDoc
41
- */
42
- init(): void;
43
- /**
44
- * Analyzes the part of the document between provided positions in search for a URL representing media.
45
- * When the URL is found, it is automatically converted into media.
46
- *
47
- * @param leftPosition Left position of the selection.
48
- * @param rightPosition Right position of the selection.
49
- */
50
- private _embedMediaBetweenPositions;
51
- }
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 media-embed/automediaembed
7
+ */
8
+ import { type Editor, Plugin } from 'ckeditor5/src/core';
9
+ import { Clipboard } from 'ckeditor5/src/clipboard';
10
+ import { Delete } from 'ckeditor5/src/typing';
11
+ import { Undo } from 'ckeditor5/src/undo';
12
+ /**
13
+ * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
14
+ * them shortly after they are injected into the document.
15
+ */
16
+ export default class AutoMediaEmbed extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get requires(): readonly [typeof Clipboard, typeof Delete, typeof Undo];
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "AutoMediaEmbed";
25
+ /**
26
+ * The paste–to–embed `setTimeout` ID. Stored as a property to allow
27
+ * cleaning of the timeout.
28
+ */
29
+ private _timeoutId;
30
+ /**
31
+ * The position where the `<media>` element will be inserted after the timeout,
32
+ * determined each time the new content is pasted into the document.
33
+ */
34
+ private _positionToInsert;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ constructor(editor: Editor);
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ init(): void;
43
+ /**
44
+ * Analyzes the part of the document between provided positions in search for a URL representing media.
45
+ * When the URL is found, it is automatically converted into media.
46
+ *
47
+ * @param leftPosition Left position of the selection.
48
+ * @param rightPosition Right position of the selection.
49
+ */
50
+ private _embedMediaBetweenPositions;
51
+ }