@ckeditor/ckeditor5-media-embed 34.0.0 → 35.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.
- package/CHANGELOG.md +129 -0
- package/LICENSE.md +2 -2
- package/build/media-embed.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/fi.js +1 -1
- package/build/translations/he.js +1 -0
- package/build/translations/ja.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/ms.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -0
- package/build/translations/ur.js +1 -0
- package/lang/translations/ar.po +7 -7
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +49 -0
- package/lang/translations/ca.po +49 -0
- package/lang/translations/es.po +1 -1
- package/lang/translations/fi.po +7 -7
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +49 -0
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +49 -0
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +49 -0
- package/lang/translations/sv.po +7 -7
- package/lang/translations/th.po +49 -0
- package/lang/translations/ur.po +49 -0
- package/package.json +22 -20
- package/src/mediaembedediting.js +6 -5
- package/src/mediaembedui.js +0 -1
- package/build/media-embed.js.map +0 -1
package/lang/translations/fr.po
CHANGED
@@ -14,7 +14,7 @@ msgid ""
|
|
14
14
|
msgstr ""
|
15
15
|
"Language-Team: French (https://www.transifex.com/ckeditor/teams/11143/fr/)\n"
|
16
16
|
"Language: fr\n"
|
17
|
-
"Plural-Forms: nplurals=
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
18
18
|
|
19
19
|
msgctxt "Label for the media widget."
|
20
20
|
msgid "media widget"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Hebrew (https://www.transifex.com/ckeditor/teams/11143/he/)\n"
|
16
|
+
"Language: he\n"
|
17
|
+
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
|
18
|
+
|
19
|
+
msgctxt "Label for the media widget."
|
20
|
+
msgid "media widget"
|
21
|
+
msgstr "יישומון מדיה"
|
22
|
+
|
23
|
+
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
|
+
msgid "Media URL"
|
25
|
+
msgstr "כתובת URL של מדיה"
|
26
|
+
|
27
|
+
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
|
+
msgid "Paste the media URL in the input."
|
29
|
+
msgstr "הדביקו את כתובת ה-URL של המדיה בקלט."
|
30
|
+
|
31
|
+
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
|
+
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
+
msgstr "טיפ: הדביקו את כתובת ה-URL לתוך התוכן כדי להטמיע מהר יותר."
|
34
|
+
|
35
|
+
msgctxt "An error message that informs about an empty value in the URL input."
|
36
|
+
msgid "The URL must not be empty."
|
37
|
+
msgstr "כתובת URL לא יכולה להיות ריקה."
|
38
|
+
|
39
|
+
msgctxt "An error message that informs about unsupported media URL."
|
40
|
+
msgid "This media URL is not supported."
|
41
|
+
msgstr "כתובת ה-URL של מדיה זו אינה נתמכת."
|
42
|
+
|
43
|
+
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
|
+
msgid "Insert media"
|
45
|
+
msgstr "הכנס מדיה"
|
46
|
+
|
47
|
+
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
|
+
msgid "Media toolbar"
|
49
|
+
msgstr "סרגל כלים של מדיה"
|
package/lang/translations/it.po
CHANGED
@@ -14,7 +14,7 @@ msgid ""
|
|
14
14
|
msgstr ""
|
15
15
|
"Language-Team: Italian (https://www.transifex.com/ckeditor/teams/11143/it/)\n"
|
16
16
|
"Language: it\n"
|
17
|
-
"Plural-Forms: nplurals=
|
17
|
+
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
18
18
|
|
19
19
|
msgctxt "Label for the media widget."
|
20
20
|
msgid "media widget"
|
package/lang/translations/ja.po
CHANGED
@@ -30,7 +30,7 @@ msgstr "URLを入力欄にコピー"
|
|
30
30
|
|
31
31
|
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
32
|
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
-
msgstr ""
|
33
|
+
msgstr "ヒント:より迅速に埋め込むには、コンテンツへURLを貼り付けてください。"
|
34
34
|
|
35
35
|
msgctxt "An error message that informs about an empty value in the URL input."
|
36
36
|
msgid "The URL must not be empty."
|
package/lang/translations/lt.po
CHANGED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Malay (https://www.transifex.com/ckeditor/teams/11143/ms/)\n"
|
16
|
+
"Language: ms\n"
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
|
+
|
19
|
+
msgctxt "Label for the media widget."
|
20
|
+
msgid "media widget"
|
21
|
+
msgstr "widget media"
|
22
|
+
|
23
|
+
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
|
+
msgid "Media URL"
|
25
|
+
msgstr "URL Media"
|
26
|
+
|
27
|
+
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
|
+
msgid "Paste the media URL in the input."
|
29
|
+
msgstr "Tampal URL media dalam input."
|
30
|
+
|
31
|
+
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
|
+
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
+
msgstr "Petua: Tampal URL kedalam kandungan untuk membenam dengan lebih pantas."
|
34
|
+
|
35
|
+
msgctxt "An error message that informs about an empty value in the URL input."
|
36
|
+
msgid "The URL must not be empty."
|
37
|
+
msgstr "URL tidak boleh ditinggalkan kosong."
|
38
|
+
|
39
|
+
msgctxt "An error message that informs about unsupported media URL."
|
40
|
+
msgid "This media URL is not supported."
|
41
|
+
msgstr "URL media ini tidak disokong."
|
42
|
+
|
43
|
+
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
|
+
msgid "Insert media"
|
45
|
+
msgstr "Masukkan media"
|
46
|
+
|
47
|
+
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
|
+
msgid "Media toolbar"
|
49
|
+
msgstr "Bar alat capaian media"
|
@@ -14,7 +14,7 @@ msgid ""
|
|
14
14
|
msgstr ""
|
15
15
|
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
|
16
16
|
"Language: pt_BR\n"
|
17
|
-
"Plural-Forms: nplurals=
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
18
18
|
|
19
19
|
msgctxt "Label for the media widget."
|
20
20
|
msgid "media widget"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Portuguese (https://www.transifex.com/ckeditor/teams/11143/pt/)\n"
|
16
|
+
"Language: pt\n"
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
18
|
+
|
19
|
+
msgctxt "Label for the media widget."
|
20
|
+
msgid "media widget"
|
21
|
+
msgstr "widget de média"
|
22
|
+
|
23
|
+
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
|
+
msgid "Media URL"
|
25
|
+
msgstr "URL de média"
|
26
|
+
|
27
|
+
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
|
+
msgid "Paste the media URL in the input."
|
29
|
+
msgstr "Cole o URL de média no input."
|
30
|
+
|
31
|
+
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
|
+
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
+
msgstr "Dica: Cole o URL no conteúdo para incorporar mais rapidamente."
|
34
|
+
|
35
|
+
msgctxt "An error message that informs about an empty value in the URL input."
|
36
|
+
msgid "The URL must not be empty."
|
37
|
+
msgstr "O URL não pode estar vazio."
|
38
|
+
|
39
|
+
msgctxt "An error message that informs about unsupported media URL."
|
40
|
+
msgid "This media URL is not supported."
|
41
|
+
msgstr "Este URL de média não é suportado."
|
42
|
+
|
43
|
+
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
|
+
msgid "Insert media"
|
45
|
+
msgstr "Inserir média"
|
46
|
+
|
47
|
+
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
|
+
msgid "Media toolbar"
|
49
|
+
msgstr "Barra de ferramentas de média"
|
package/lang/translations/sv.po
CHANGED
@@ -18,27 +18,27 @@ msgstr ""
|
|
18
18
|
|
19
19
|
msgctxt "Label for the media widget."
|
20
20
|
msgid "media widget"
|
21
|
-
msgstr ""
|
21
|
+
msgstr "mediewidget"
|
22
22
|
|
23
23
|
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
24
|
msgid "Media URL"
|
25
|
-
msgstr ""
|
25
|
+
msgstr "Medie-URL"
|
26
26
|
|
27
27
|
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
28
|
msgid "Paste the media URL in the input."
|
29
|
-
msgstr ""
|
29
|
+
msgstr "Klistra in medie-URL:en i indata."
|
30
30
|
|
31
31
|
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
32
|
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
-
msgstr ""
|
33
|
+
msgstr "Tips: Klistra in URL:en i innehållet för snabbare inbäddning."
|
34
34
|
|
35
35
|
msgctxt "An error message that informs about an empty value in the URL input."
|
36
36
|
msgid "The URL must not be empty."
|
37
|
-
msgstr ""
|
37
|
+
msgstr "URL:en får inte vara tom."
|
38
38
|
|
39
39
|
msgctxt "An error message that informs about unsupported media URL."
|
40
40
|
msgid "This media URL is not supported."
|
41
|
-
msgstr ""
|
41
|
+
msgstr "Medie-URL:en stöds inte."
|
42
42
|
|
43
43
|
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
44
|
msgid "Insert media"
|
@@ -46,4 +46,4 @@ msgstr "Lägg in media"
|
|
46
46
|
|
47
47
|
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
48
|
msgid "Media toolbar"
|
49
|
-
msgstr ""
|
49
|
+
msgstr "Medieverktygsfält"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Thai (https://www.transifex.com/ckeditor/teams/11143/th/)\n"
|
16
|
+
"Language: th\n"
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
|
+
|
19
|
+
msgctxt "Label for the media widget."
|
20
|
+
msgid "media widget"
|
21
|
+
msgstr "วิดเจ็ตสื่อ"
|
22
|
+
|
23
|
+
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
|
+
msgid "Media URL"
|
25
|
+
msgstr "URL สื่อ"
|
26
|
+
|
27
|
+
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
|
+
msgid "Paste the media URL in the input."
|
29
|
+
msgstr "วาง URL สื่อในอินพุต"
|
30
|
+
|
31
|
+
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
|
+
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
+
msgstr "เคล็ดลับ: การวาง URL ลงในเนื้อหาจะช่วยให้ฝังได้เร็วขึ้น"
|
34
|
+
|
35
|
+
msgctxt "An error message that informs about an empty value in the URL input."
|
36
|
+
msgid "The URL must not be empty."
|
37
|
+
msgstr "URL ต้องไม่ว่างเปล่า"
|
38
|
+
|
39
|
+
msgctxt "An error message that informs about unsupported media URL."
|
40
|
+
msgid "This media URL is not supported."
|
41
|
+
msgstr "ไม่รองรับ URL ของสื่อนี้"
|
42
|
+
|
43
|
+
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
|
+
msgid "Insert media"
|
45
|
+
msgstr "แทรกสื่อ"
|
46
|
+
|
47
|
+
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
|
+
msgid "Media toolbar"
|
49
|
+
msgstr "แถบเครื่องมือสื่อ"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
2
|
+
#
|
3
|
+
# !!! IMPORTANT !!!
|
4
|
+
#
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
7
|
+
#
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
9
|
+
#
|
10
|
+
# To learn more, check out the official contributor's guide:
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
12
|
+
#
|
13
|
+
msgid ""
|
14
|
+
msgstr ""
|
15
|
+
"Language-Team: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
|
16
|
+
"Language: ur\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
|
+
|
19
|
+
msgctxt "Label for the media widget."
|
20
|
+
msgid "media widget"
|
21
|
+
msgstr "آلۂ میڈیا"
|
22
|
+
|
23
|
+
msgctxt "Label for the URL input in the Media Embed URL editing balloon."
|
24
|
+
msgid "Media URL"
|
25
|
+
msgstr "میڈیا یو آر ایل"
|
26
|
+
|
27
|
+
msgctxt "The help text displayed under the media URL input helping users to discover the interface."
|
28
|
+
msgid "Paste the media URL in the input."
|
29
|
+
msgstr ""
|
30
|
+
|
31
|
+
msgctxt "The tip displayed next to the media URL input informing about an easier way of embedding."
|
32
|
+
msgid "Tip: Paste the URL into the content to embed faster."
|
33
|
+
msgstr ""
|
34
|
+
|
35
|
+
msgctxt "An error message that informs about an empty value in the URL input."
|
36
|
+
msgid "The URL must not be empty."
|
37
|
+
msgstr "یو آر ایل خالی نہیں ہونا چاہیے۔"
|
38
|
+
|
39
|
+
msgctxt "An error message that informs about unsupported media URL."
|
40
|
+
msgid "This media URL is not supported."
|
41
|
+
msgstr "میڈیا یو آر ایل معاونت یافتہ نہیں"
|
42
|
+
|
43
|
+
msgctxt "Toolbar button tooltip for the Media Embed feature."
|
44
|
+
msgid "Insert media"
|
45
|
+
msgstr "میڈیا نصب کریں"
|
46
|
+
|
47
|
+
msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
|
48
|
+
msgid "Media toolbar"
|
49
|
+
msgstr "آلہ جات برائے میڈیا"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-media-embed",
|
3
|
-
"version": "
|
3
|
+
"version": "35.0.0",
|
4
4
|
"description": "Media embed feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,28 +12,29 @@
|
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-ui": "^
|
16
|
-
"ckeditor5": "^
|
15
|
+
"@ckeditor/ckeditor5-ui": "^35.0.0",
|
16
|
+
"ckeditor5": "^35.0.0"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
20
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
21
|
-
"@ckeditor/ckeditor5-core": "^
|
19
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.0.0",
|
20
|
+
"@ckeditor/ckeditor5-clipboard": "^35.0.0",
|
21
|
+
"@ckeditor/ckeditor5-core": "^35.0.0",
|
22
22
|
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
|
23
|
-
"@ckeditor/ckeditor5-editor-balloon": "^
|
24
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
25
|
-
"@ckeditor/ckeditor5-engine": "^
|
26
|
-
"@ckeditor/ckeditor5-image": "^
|
27
|
-
"@ckeditor/ckeditor5-link": "^
|
28
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
29
|
-
"@ckeditor/ckeditor5-table": "^
|
30
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
31
|
-
"@ckeditor/ckeditor5-typing": "^
|
32
|
-
"@ckeditor/ckeditor5-undo": "^
|
33
|
-
"@ckeditor/ckeditor5-utils": "^
|
34
|
-
"@ckeditor/ckeditor5-widget": "^
|
23
|
+
"@ckeditor/ckeditor5-editor-balloon": "^35.0.0",
|
24
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.0.0",
|
25
|
+
"@ckeditor/ckeditor5-engine": "^35.0.0",
|
26
|
+
"@ckeditor/ckeditor5-image": "^35.0.0",
|
27
|
+
"@ckeditor/ckeditor5-link": "^35.0.0",
|
28
|
+
"@ckeditor/ckeditor5-paragraph": "^35.0.0",
|
29
|
+
"@ckeditor/ckeditor5-table": "^35.0.0",
|
30
|
+
"@ckeditor/ckeditor5-theme-lark": "^35.0.0",
|
31
|
+
"@ckeditor/ckeditor5-typing": "^35.0.0",
|
32
|
+
"@ckeditor/ckeditor5-undo": "^35.0.0",
|
33
|
+
"@ckeditor/ckeditor5-utils": "^35.0.0",
|
34
|
+
"@ckeditor/ckeditor5-widget": "^35.0.0",
|
35
35
|
"webpack": "^5.58.1",
|
36
|
-
"webpack-cli": "^4.9.0"
|
36
|
+
"webpack-cli": "^4.9.0",
|
37
|
+
"lodash-es": "^4.17.15"
|
37
38
|
},
|
38
39
|
"engines": {
|
39
40
|
"node": ">=14.0.0",
|
@@ -53,7 +54,8 @@
|
|
53
54
|
"src",
|
54
55
|
"theme",
|
55
56
|
"build",
|
56
|
-
"ckeditor5-metadata.json"
|
57
|
+
"ckeditor5-metadata.json",
|
58
|
+
"CHANGELOG.md"
|
57
59
|
],
|
58
60
|
"scripts": {
|
59
61
|
"dll:build": "webpack"
|
package/src/mediaembedediting.js
CHANGED
@@ -80,17 +80,18 @@ export default class MediaEmbedEditing extends Plugin {
|
|
80
80
|
{
|
81
81
|
name: 'youtube',
|
82
82
|
url: [
|
83
|
-
/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)
|
84
|
-
/^(?:m\.)?youtube\.com\/v\/([\w-]+)
|
85
|
-
/^youtube\.com\/embed\/([\w-]+)
|
86
|
-
/^youtu\.be\/([\w-]+)
|
83
|
+
/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,
|
84
|
+
/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,
|
85
|
+
/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,
|
86
|
+
/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/
|
87
87
|
],
|
88
88
|
html: match => {
|
89
89
|
const id = match[ 1 ];
|
90
|
+
const time = match[ 2 ];
|
90
91
|
|
91
92
|
return (
|
92
93
|
'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;">' +
|
93
|
-
`<iframe src="https://www.youtube.com/embed/${ id }" ` +
|
94
|
+
`<iframe src="https://www.youtube.com/embed/${ id }${ time ? `?start=${ time }` : '' }" ` +
|
94
95
|
'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" ' +
|
95
96
|
'frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>' +
|
96
97
|
'</iframe>' +
|