@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.
Files changed (66) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +4 -0
  3. package/build/html-support.js +1 -1
  4. package/build/translations/ar.js +1 -0
  5. package/build/translations/bg.js +1 -0
  6. package/build/translations/bn.js +1 -0
  7. package/build/translations/ca.js +1 -0
  8. package/build/translations/da.js +1 -0
  9. package/build/translations/et.js +1 -0
  10. package/build/translations/fi.js +1 -0
  11. package/build/translations/fr.js +1 -0
  12. package/build/translations/he.js +1 -0
  13. package/build/translations/hi.js +1 -0
  14. package/build/translations/ja.js +1 -0
  15. package/build/translations/ko.js +1 -0
  16. package/build/translations/lt.js +1 -0
  17. package/build/translations/ms.js +1 -0
  18. package/build/translations/no.js +1 -0
  19. package/build/translations/pt.js +1 -0
  20. package/build/translations/ro.js +1 -0
  21. package/build/translations/sv.js +1 -0
  22. package/build/translations/th.js +1 -0
  23. package/build/translations/tr.js +1 -0
  24. package/build/translations/uk.js +1 -0
  25. package/build/translations/vi.js +1 -0
  26. package/build/translations/zh-cn.js +1 -0
  27. package/lang/translations/ar.po +21 -0
  28. package/lang/translations/bg.po +21 -0
  29. package/lang/translations/bn.po +21 -0
  30. package/lang/translations/ca.po +21 -0
  31. package/lang/translations/da.po +21 -0
  32. package/lang/translations/es.po +1 -1
  33. package/lang/translations/et.po +21 -0
  34. package/lang/translations/fi.po +21 -0
  35. package/lang/translations/fr.po +21 -0
  36. package/lang/translations/he.po +21 -0
  37. package/lang/translations/hi.po +21 -0
  38. package/lang/translations/it.po +1 -1
  39. package/lang/translations/ja.po +21 -0
  40. package/lang/translations/ko.po +21 -0
  41. package/lang/translations/lt.po +21 -0
  42. package/lang/translations/ms.po +21 -0
  43. package/lang/translations/no.po +21 -0
  44. package/lang/translations/pt-br.po +1 -1
  45. package/lang/translations/pt.po +21 -0
  46. package/lang/translations/ro.po +21 -0
  47. package/lang/translations/sv.po +21 -0
  48. package/lang/translations/th.po +21 -0
  49. package/lang/translations/tr.po +21 -0
  50. package/lang/translations/uk.po +21 -0
  51. package/lang/translations/vi.po +21 -0
  52. package/lang/translations/zh-cn.po +21 -0
  53. package/package.json +32 -31
  54. package/src/datafilter.js +24 -2
  55. package/src/generalhtmlsupport.js +3 -1
  56. package/src/integrations/codeblock.js +7 -0
  57. package/src/integrations/customelement.js +179 -0
  58. package/src/integrations/documentlist.js +7 -0
  59. package/src/integrations/dualcontent.js +7 -0
  60. package/src/integrations/heading.js +7 -0
  61. package/src/integrations/image.js +7 -0
  62. package/src/integrations/mediaembed.js +13 -0
  63. package/src/integrations/script.js +7 -0
  64. package/src/integrations/style.js +7 -0
  65. package/src/integrations/table.js +7 -0
  66. 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 "एचटीएमएल वस्तु"
@@ -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=2; plural=(n != 1);\n"
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=2; plural=(n > 1);\n"
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": "34.1.0",
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": "^34.1.0",
19
+ "ckeditor5": "^35.0.1",
20
20
  "lodash-es": "^4.17.15"
21
21
  },
22
22
  "devDependencies": {
23
- "@ckeditor/ckeditor5-alignment": "^34.1.0",
24
- "@ckeditor/ckeditor5-basic-styles": "^34.1.0",
25
- "@ckeditor/ckeditor5-block-quote": "^34.1.0",
26
- "@ckeditor/ckeditor5-cloud-services": "^34.1.0",
27
- "@ckeditor/ckeditor5-code-block": "^34.1.0",
28
- "@ckeditor/ckeditor5-core": "^34.1.0",
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": "^34.1.0",
31
- "@ckeditor/ckeditor5-editor-classic": "^34.1.0",
32
- "@ckeditor/ckeditor5-engine": "^34.1.0",
33
- "@ckeditor/ckeditor5-enter": "^34.1.0",
34
- "@ckeditor/ckeditor5-essentials": "^34.1.0",
35
- "@ckeditor/ckeditor5-font": "^34.1.0",
36
- "@ckeditor/ckeditor5-heading": "^34.1.0",
37
- "@ckeditor/ckeditor5-highlight": "^34.1.0",
38
- "@ckeditor/ckeditor5-horizontal-line": "^34.1.0",
39
- "@ckeditor/ckeditor5-html-embed": "^34.1.0",
40
- "@ckeditor/ckeditor5-image": "^34.1.0",
41
- "@ckeditor/ckeditor5-indent": "^34.1.0",
42
- "@ckeditor/ckeditor5-link": "^34.1.0",
43
- "@ckeditor/ckeditor5-list": "^34.1.0",
44
- "@ckeditor/ckeditor5-media-embed": "^34.1.0",
45
- "@ckeditor/ckeditor5-page-break": "^34.1.0",
46
- "@ckeditor/ckeditor5-paragraph": "^34.1.0",
47
- "@ckeditor/ckeditor5-paste-from-office": "^34.1.0",
48
- "@ckeditor/ckeditor5-source-editing": "^34.1.0",
49
- "@ckeditor/ckeditor5-table": "^34.1.0",
50
- "@ckeditor/ckeditor5-theme-lark": "^34.1.0",
51
- "@ckeditor/ckeditor5-utils": "^34.1.0",
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
 
@@ -25,6 +25,13 @@ export default class CodeBlockElementSupport extends Plugin {
25
25
  return [ DataFilter ];
26
26
  }
27
27
 
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get pluginName() {
32
+ return 'CodeBlockElementSupport';
33
+ }
34
+
28
35
  /**
29
36
  * @inheritDoc
30
37
  */