@ckeditor/ckeditor5-html-support 34.1.0 → 35.0.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.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +4 -0
- package/build/html-support.js +1 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/lang/translations/ar.po +21 -0
- package/lang/translations/bg.po +21 -0
- package/lang/translations/bn.po +21 -0
- package/lang/translations/ca.po +21 -0
- package/lang/translations/da.po +21 -0
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +21 -0
- package/lang/translations/fi.po +21 -0
- package/lang/translations/fr.po +21 -0
- package/lang/translations/he.po +21 -0
- package/lang/translations/hi.po +21 -0
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +21 -0
- package/lang/translations/ko.po +21 -0
- package/lang/translations/lt.po +21 -0
- package/lang/translations/ms.po +21 -0
- package/lang/translations/no.po +21 -0
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +21 -0
- package/lang/translations/ro.po +21 -0
- package/lang/translations/sv.po +21 -0
- package/lang/translations/th.po +21 -0
- package/lang/translations/tr.po +21 -0
- package/lang/translations/uk.po +21 -0
- package/lang/translations/vi.po +21 -0
- package/lang/translations/zh-cn.po +21 -0
- package/package.json +32 -31
- package/src/datafilter.js +24 -2
- package/src/generalhtmlsupport.js +3 -1
- package/src/integrations/codeblock.js +7 -0
- package/src/integrations/customelement.js +179 -0
- package/src/integrations/documentlist.js +7 -0
- package/src/integrations/dualcontent.js +7 -0
- package/src/integrations/heading.js +7 -0
- package/src/integrations/image.js +7 -0
- package/src/integrations/mediaembed.js +13 -0
- package/src/integrations/script.js +7 -0
- package/src/integrations/style.js +7 -0
- package/src/integrations/table.js +7 -0
- package/src/schemadefinitions.js +8 -0
|
@@ -0,0 +1,21 @@
|
|
|
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: French (https://www.transifex.com/ckeditor/teams/11143/fr/)\n"
|
|
16
|
+
"Language: fr\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "Objet HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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 "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "אובייקט HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Hindi (https://www.transifex.com/ckeditor/teams/11143/hi/)\n"
|
|
16
|
+
"Language: hi\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
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 "A label describing an HTML object widget."
|
|
20
20
|
msgid "HTML object"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Japanese (https://www.transifex.com/ckeditor/teams/11143/ja/)\n"
|
|
16
|
+
"Language: ja\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTMLオブジェクト"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Korean (https://www.transifex.com/ckeditor/teams/11143/ko/)\n"
|
|
16
|
+
"Language: ko\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML 오브젝트"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Lithuanian (https://www.transifex.com/ckeditor/teams/11143/lt/)\n"
|
|
16
|
+
"Language: lt\n"
|
|
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
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML object"
|
|
@@ -0,0 +1,21 @@
|
|
|
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 "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "Objek HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Norwegian (https://www.transifex.com/ckeditor/teams/11143/no/)\n"
|
|
16
|
+
"Language: no\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML-objekt"
|
|
@@ -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 "A label describing an HTML object widget."
|
|
20
20
|
msgid "HTML object"
|
|
@@ -0,0 +1,21 @@
|
|
|
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 "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "Objeto HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Romanian (https://www.transifex.com/ckeditor/teams/11143/ro/)\n"
|
|
16
|
+
"Language: ro\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "Obiect HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Swedish (https://www.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
|
+
"Language: sv\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML-objekt"
|
|
@@ -0,0 +1,21 @@
|
|
|
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 "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "วัตถุ HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Turkish (https://www.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
|
+
"Language: tr\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML nesnesi"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Ukrainian (https://www.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
|
+
"Language: uk\n"
|
|
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
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML об'єкт"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Vietnamese (https://www.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
|
+
"Language: vi\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "Đối tượng HTML"
|
|
@@ -0,0 +1,21 @@
|
|
|
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: Chinese (China) (https://www.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
|
+
"Language: zh_CN\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "A label describing an HTML object widget."
|
|
20
|
+
msgid "HTML object"
|
|
21
|
+
msgstr "HTML对象"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-html-support",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.1",
|
|
4
4
|
"description": "HTML Support feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -16,39 +16,39 @@
|
|
|
16
16
|
],
|
|
17
17
|
"main": "src/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"ckeditor5": "^
|
|
19
|
+
"ckeditor5": "^35.0.1",
|
|
20
20
|
"lodash-es": "^4.17.15"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@ckeditor/ckeditor5-alignment": "^
|
|
24
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
25
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
|
26
|
-
"@ckeditor/ckeditor5-cloud-services": "^
|
|
27
|
-
"@ckeditor/ckeditor5-code-block": "^
|
|
28
|
-
"@ckeditor/ckeditor5-core": "^
|
|
23
|
+
"@ckeditor/ckeditor5-alignment": "^35.0.1",
|
|
24
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.0.1",
|
|
25
|
+
"@ckeditor/ckeditor5-block-quote": "^35.0.1",
|
|
26
|
+
"@ckeditor/ckeditor5-cloud-services": "^35.0.1",
|
|
27
|
+
"@ckeditor/ckeditor5-code-block": "^35.0.1",
|
|
28
|
+
"@ckeditor/ckeditor5-core": "^35.0.1",
|
|
29
29
|
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
|
|
30
|
-
"@ckeditor/ckeditor5-easy-image": "^
|
|
31
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
32
|
-
"@ckeditor/ckeditor5-engine": "^
|
|
33
|
-
"@ckeditor/ckeditor5-enter": "^
|
|
34
|
-
"@ckeditor/ckeditor5-essentials": "^
|
|
35
|
-
"@ckeditor/ckeditor5-font": "^
|
|
36
|
-
"@ckeditor/ckeditor5-heading": "^
|
|
37
|
-
"@ckeditor/ckeditor5-highlight": "^
|
|
38
|
-
"@ckeditor/ckeditor5-horizontal-line": "^
|
|
39
|
-
"@ckeditor/ckeditor5-html-embed": "^
|
|
40
|
-
"@ckeditor/ckeditor5-image": "^
|
|
41
|
-
"@ckeditor/ckeditor5-indent": "^
|
|
42
|
-
"@ckeditor/ckeditor5-link": "^
|
|
43
|
-
"@ckeditor/ckeditor5-list": "^
|
|
44
|
-
"@ckeditor/ckeditor5-media-embed": "^
|
|
45
|
-
"@ckeditor/ckeditor5-page-break": "^
|
|
46
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
47
|
-
"@ckeditor/ckeditor5-paste-from-office": "^
|
|
48
|
-
"@ckeditor/ckeditor5-source-editing": "^
|
|
49
|
-
"@ckeditor/ckeditor5-table": "^
|
|
50
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
|
51
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
30
|
+
"@ckeditor/ckeditor5-easy-image": "^35.0.1",
|
|
31
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.0.1",
|
|
32
|
+
"@ckeditor/ckeditor5-engine": "^35.0.1",
|
|
33
|
+
"@ckeditor/ckeditor5-enter": "^35.0.1",
|
|
34
|
+
"@ckeditor/ckeditor5-essentials": "^35.0.1",
|
|
35
|
+
"@ckeditor/ckeditor5-font": "^35.0.1",
|
|
36
|
+
"@ckeditor/ckeditor5-heading": "^35.0.1",
|
|
37
|
+
"@ckeditor/ckeditor5-highlight": "^35.0.1",
|
|
38
|
+
"@ckeditor/ckeditor5-horizontal-line": "^35.0.1",
|
|
39
|
+
"@ckeditor/ckeditor5-html-embed": "^35.0.1",
|
|
40
|
+
"@ckeditor/ckeditor5-image": "^35.0.1",
|
|
41
|
+
"@ckeditor/ckeditor5-indent": "^35.0.1",
|
|
42
|
+
"@ckeditor/ckeditor5-link": "^35.0.1",
|
|
43
|
+
"@ckeditor/ckeditor5-list": "^35.0.1",
|
|
44
|
+
"@ckeditor/ckeditor5-media-embed": "^35.0.1",
|
|
45
|
+
"@ckeditor/ckeditor5-page-break": "^35.0.1",
|
|
46
|
+
"@ckeditor/ckeditor5-paragraph": "^35.0.1",
|
|
47
|
+
"@ckeditor/ckeditor5-paste-from-office": "^35.0.1",
|
|
48
|
+
"@ckeditor/ckeditor5-source-editing": "^35.0.1",
|
|
49
|
+
"@ckeditor/ckeditor5-table": "^35.0.1",
|
|
50
|
+
"@ckeditor/ckeditor5-theme-lark": "^35.0.1",
|
|
51
|
+
"@ckeditor/ckeditor5-utils": "^35.0.1",
|
|
52
52
|
"webpack": "^5.58.1",
|
|
53
53
|
"webpack-cli": "^4.9.0"
|
|
54
54
|
},
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"src",
|
|
71
71
|
"theme",
|
|
72
72
|
"build",
|
|
73
|
-
"ckeditor5-metadata.json"
|
|
73
|
+
"ckeditor5-metadata.json",
|
|
74
|
+
"CHANGELOG.md"
|
|
74
75
|
],
|
|
75
76
|
"scripts": {
|
|
76
77
|
"dll:build": "webpack"
|
package/src/datafilter.js
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @module html-support/datafilter
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
/* globals document */
|
|
11
|
+
|
|
10
12
|
import DataSchema from './dataschema';
|
|
11
13
|
|
|
12
14
|
import { Plugin } from 'ckeditor5/src/core';
|
|
@@ -552,14 +554,14 @@ export default class DataFilter extends Plugin {
|
|
|
552
554
|
* as an event namespace, e.g. `register:span`.
|
|
553
555
|
*
|
|
554
556
|
* dataFilter.on( 'register', ( evt, definition ) => {
|
|
555
|
-
* editor.schema.register( definition.model, definition.modelSchema );
|
|
557
|
+
* editor.model.schema.register( definition.model, definition.modelSchema );
|
|
556
558
|
* editor.conversion.elementToElement( { model: definition.model, view: definition.view } );
|
|
557
559
|
*
|
|
558
560
|
* evt.stop();
|
|
559
561
|
* } );
|
|
560
562
|
*
|
|
561
563
|
* dataFilter.on( 'register:span', ( evt, definition ) => {
|
|
562
|
-
* editor.schema.extend( '$text', { allowAttributes: 'htmlSpan' } );
|
|
564
|
+
* editor.model.schema.extend( '$text', { allowAttributes: 'htmlSpan' } );
|
|
563
565
|
*
|
|
564
566
|
* editor.conversion.for( 'upcast' ).elementToAttribute( { view: 'span', model: 'htmlSpan' } );
|
|
565
567
|
* editor.conversion.for( 'downcast' ).attributeToElement( { view: 'span', model: 'htmlSpan' } );
|
|
@@ -587,6 +589,15 @@ function consumeAttributes( viewElement, conversionApi, matcher ) {
|
|
|
587
589
|
const { attributes, styles, classes } = mergeMatchResults( matches );
|
|
588
590
|
const viewAttributes = {};
|
|
589
591
|
|
|
592
|
+
// Remove invalid DOM element attributes.
|
|
593
|
+
if ( attributes.size ) {
|
|
594
|
+
for ( const key of attributes ) {
|
|
595
|
+
if ( !isValidAttributeName( key ) ) {
|
|
596
|
+
attributes.delete( key );
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
590
601
|
if ( attributes.size ) {
|
|
591
602
|
viewAttributes.attributes = iterableToObject( attributes, key => viewElement.getAttribute( key ) );
|
|
592
603
|
}
|
|
@@ -752,3 +763,14 @@ function splitRules( rules ) {
|
|
|
752
763
|
|
|
753
764
|
return splittedRules;
|
|
754
765
|
}
|
|
766
|
+
|
|
767
|
+
// Returns true if name is valid for a DOM attribute name.
|
|
768
|
+
function isValidAttributeName( name ) {
|
|
769
|
+
try {
|
|
770
|
+
document.createAttribute( name );
|
|
771
|
+
} catch ( error ) {
|
|
772
|
+
return false;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
return true;
|
|
776
|
+
}
|
|
@@ -20,6 +20,7 @@ import ScriptElementSupport from './integrations/script';
|
|
|
20
20
|
import TableElementSupport from './integrations/table';
|
|
21
21
|
import StyleElementSupport from './integrations/style';
|
|
22
22
|
import DocumentListElementSupport from './integrations/documentlist';
|
|
23
|
+
import CustomElementSupport from './integrations/customelement';
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* The General HTML Support feature.
|
|
@@ -51,7 +52,8 @@ export default class GeneralHtmlSupport extends Plugin {
|
|
|
51
52
|
ScriptElementSupport,
|
|
52
53
|
TableElementSupport,
|
|
53
54
|
StyleElementSupport,
|
|
54
|
-
DocumentListElementSupport
|
|
55
|
+
DocumentListElementSupport,
|
|
56
|
+
CustomElementSupport
|
|
55
57
|
];
|
|
56
58
|
}
|
|
57
59
|
|