@ckeditor/ckeditor5-heading 47.6.1-alpha.1 → 48.0.0-alpha.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/ckeditor5-metadata.json +2 -2
- package/{src → dist}/heading.d.ts +1 -1
- package/{src → dist}/headingbuttonsui.d.ts +1 -1
- package/{src → dist}/headingcommand.d.ts +1 -1
- package/{src → dist}/headingconfig.d.ts +2 -2
- package/{src → dist}/headingediting.d.ts +2 -2
- package/{src → dist}/headingui.d.ts +1 -1
- package/dist/index-editor.css +12 -4
- package/dist/index.css +12 -9
- package/dist/index.css.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/{src → dist}/title.d.ts +8 -4
- package/{src → dist}/utils.d.ts +1 -1
- package/package.json +25 -48
- package/build/heading.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -12
- package/lang/translations/af.po +0 -52
- package/lang/translations/ar.po +0 -52
- package/lang/translations/ast.po +0 -52
- package/lang/translations/az.po +0 -52
- package/lang/translations/be.po +0 -52
- package/lang/translations/bg.po +0 -52
- package/lang/translations/bn.po +0 -52
- package/lang/translations/bs.po +0 -52
- package/lang/translations/ca.po +0 -52
- package/lang/translations/cs.po +0 -52
- package/lang/translations/da.po +0 -52
- package/lang/translations/de-ch.po +0 -52
- package/lang/translations/de.po +0 -52
- package/lang/translations/el.po +0 -52
- package/lang/translations/en-au.po +0 -52
- package/lang/translations/en-gb.po +0 -52
- package/lang/translations/en.po +0 -52
- package/lang/translations/eo.po +0 -52
- package/lang/translations/es-co.po +0 -52
- package/lang/translations/es.po +0 -52
- package/lang/translations/et.po +0 -52
- package/lang/translations/eu.po +0 -52
- package/lang/translations/fa.po +0 -52
- package/lang/translations/fi.po +0 -52
- package/lang/translations/fr.po +0 -52
- package/lang/translations/gl.po +0 -52
- package/lang/translations/gu.po +0 -52
- package/lang/translations/he.po +0 -52
- package/lang/translations/hi.po +0 -52
- package/lang/translations/hr.po +0 -52
- package/lang/translations/hu.po +0 -52
- package/lang/translations/hy.po +0 -52
- package/lang/translations/id.po +0 -52
- package/lang/translations/it.po +0 -52
- package/lang/translations/ja.po +0 -52
- package/lang/translations/jv.po +0 -52
- package/lang/translations/kk.po +0 -52
- package/lang/translations/km.po +0 -52
- package/lang/translations/kn.po +0 -52
- package/lang/translations/ko.po +0 -52
- package/lang/translations/ku.po +0 -52
- package/lang/translations/lt.po +0 -52
- package/lang/translations/lv.po +0 -52
- package/lang/translations/ms.po +0 -52
- package/lang/translations/nb.po +0 -52
- package/lang/translations/ne.po +0 -52
- package/lang/translations/nl.po +0 -52
- package/lang/translations/no.po +0 -52
- package/lang/translations/oc.po +0 -52
- package/lang/translations/pl.po +0 -52
- package/lang/translations/pt-br.po +0 -52
- package/lang/translations/pt.po +0 -52
- package/lang/translations/ro.po +0 -52
- package/lang/translations/ru.po +0 -52
- package/lang/translations/si.po +0 -52
- package/lang/translations/sk.po +0 -52
- package/lang/translations/sl.po +0 -52
- package/lang/translations/sq.po +0 -52
- package/lang/translations/sr-latn.po +0 -52
- package/lang/translations/sr.po +0 -52
- package/lang/translations/sv.po +0 -52
- package/lang/translations/th.po +0 -52
- package/lang/translations/ti.po +0 -52
- package/lang/translations/tk.po +0 -52
- package/lang/translations/tr.po +0 -52
- package/lang/translations/tt.po +0 -52
- package/lang/translations/ug.po +0 -52
- package/lang/translations/uk.po +0 -52
- package/lang/translations/ur.po +0 -52
- package/lang/translations/uz.po +0 -52
- package/lang/translations/vi.po +0 -52
- package/lang/translations/zh-cn.po +0 -52
- package/lang/translations/zh.po +0 -52
- package/src/augmentation.js +0 -5
- package/src/heading.js +0 -42
- package/src/headingbuttonsui.js +0 -84
- package/src/headingcommand.js +0 -70
- package/src/headingconfig.js +0 -5
- package/src/headingediting.js +0 -107
- package/src/headingui.js +0 -171
- package/src/index.js +0 -15
- package/src/title.js +0 -463
- package/src/utils.js +0 -33
- package/theme/heading.css +0 -20
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/lang/translations/ug.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: ug\n"
|
|
11
|
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "ماۋزۇ"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "ماۋزۇ تاللاش"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "ماۋزۇ 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "ماۋزۇ 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "ماۋزۇ 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "ماۋزۇ 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "ماۋزۇ 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "ماۋزۇ 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "ماۋزۇ كىرگۈزۈلىدۇ"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "مەزمۇن بۇ جايغا كىرگۈزۈلىدۇ ياكى چاپلىنىدۇ."
|
package/lang/translations/uk.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: uk\n"
|
|
11
|
-
"Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "Заголовок"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "Оберіть заголовок"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "Заголовок 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "Заголовок 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "Заголовок 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "Заголовок 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "Заголовок 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "Заголовок 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "Введіть назву"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "Введіть або вставте свій вміст тут."
|
package/lang/translations/ur.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: ur\n"
|
|
11
|
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "سرخی"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "سرخی منتخب کریں"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "سرخی 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "سرخی 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "سرخی 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "سرخی 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "سرخی 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "سرخی 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "عنوان ٹایپ کریں"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "اپنا مواد یہاں ٹایپ یا چسپاں کریں."
|
package/lang/translations/uz.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: uz\n"
|
|
11
|
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "Uslub"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "Uslubni tanlash"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "Sarlavha 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "Sarlavha 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "Sarlavha 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "Sarlavha 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "Sarlavha 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "Sarlavha 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "Sarlavhani kiriting"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "Matningizni shu yerga kiriting yoki joylashtiring"
|
package/lang/translations/vi.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: vi\n"
|
|
11
|
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "Tiêu đề"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "Chọn tiêu đề"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "Tiêu đề 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "Tiêu đề 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "Tiêu đề 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "Tiêu đề 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "Tiêu đề 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "Tiêu đề 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "Nhập tựa đề"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "Nhập hoặc dán nội dung tại đây"
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: zh_CN\n"
|
|
11
|
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "标题"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "标题类型"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "标题 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "标题 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "标题 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "标题 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "标题 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "标题 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "输入标题"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "在这里输入或粘贴内容"
|
package/lang/translations/zh.po
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
|
4
|
-
#
|
|
5
|
-
# Check out the official contributor's guide:
|
|
6
|
-
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
7
|
-
#
|
|
8
|
-
msgid ""
|
|
9
|
-
msgstr ""
|
|
10
|
-
"Language: zh_TW\n"
|
|
11
|
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
12
|
-
"Content-Type: text/plain; charset=UTF-8\n"
|
|
13
|
-
|
|
14
|
-
msgctxt "Tooltip for the heading dropdown."
|
|
15
|
-
msgid "Heading"
|
|
16
|
-
msgstr "標題"
|
|
17
|
-
|
|
18
|
-
msgctxt "Default label for the heading dropdown."
|
|
19
|
-
msgid "Choose heading"
|
|
20
|
-
msgstr "選取標題"
|
|
21
|
-
|
|
22
|
-
msgctxt "Dropdown option label for the heading level 1 format."
|
|
23
|
-
msgid "Heading 1"
|
|
24
|
-
msgstr "標題 1"
|
|
25
|
-
|
|
26
|
-
msgctxt "Dropdown option label for the heading level 2 format."
|
|
27
|
-
msgid "Heading 2"
|
|
28
|
-
msgstr "標題 2"
|
|
29
|
-
|
|
30
|
-
msgctxt "Dropdown option label for the heading level 3 format."
|
|
31
|
-
msgid "Heading 3"
|
|
32
|
-
msgstr "標題 3"
|
|
33
|
-
|
|
34
|
-
msgctxt "Dropdown option label for the heading level 4 format."
|
|
35
|
-
msgid "Heading 4"
|
|
36
|
-
msgstr "標題 4"
|
|
37
|
-
|
|
38
|
-
msgctxt "Dropdown option label for the heading level 5 format."
|
|
39
|
-
msgid "Heading 5"
|
|
40
|
-
msgstr "標題 5"
|
|
41
|
-
|
|
42
|
-
msgctxt "Dropdown option label for the heading level 6 format."
|
|
43
|
-
msgid "Heading 6"
|
|
44
|
-
msgstr "標題 6"
|
|
45
|
-
|
|
46
|
-
msgctxt "A default value of the placeholder for the content title."
|
|
47
|
-
msgid "Type your title"
|
|
48
|
-
msgstr "輸入你的標題"
|
|
49
|
-
|
|
50
|
-
msgctxt "A default value of the placeholder for the content body."
|
|
51
|
-
msgid "Type or paste your content here."
|
|
52
|
-
msgstr "在此輸入或貼上你的內容。"
|
package/src/augmentation.js
DELETED
package/src/heading.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module heading/heading
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { HeadingEditing } from './headingediting.js';
|
|
10
|
-
import { HeadingUI } from './headingui.js';
|
|
11
|
-
import '../theme/heading.css';
|
|
12
|
-
/**
|
|
13
|
-
* The headings feature.
|
|
14
|
-
*
|
|
15
|
-
* For a detailed overview, check the {@glink features/headings Headings feature} guide
|
|
16
|
-
* and the {@glink api/heading package page}.
|
|
17
|
-
*
|
|
18
|
-
* This is a "glue" plugin which loads the {@link module:heading/headingediting~HeadingEditing heading editing feature}
|
|
19
|
-
* and {@link module:heading/headingui~HeadingUI heading UI feature}.
|
|
20
|
-
*
|
|
21
|
-
* @extends module:core/plugin~Plugin
|
|
22
|
-
*/
|
|
23
|
-
export class Heading extends Plugin {
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
static get requires() {
|
|
28
|
-
return [HeadingEditing, HeadingUI];
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
static get pluginName() {
|
|
34
|
-
return 'Heading';
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
static get isOfficialPlugin() {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
}
|
package/src/headingbuttonsui.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module heading/headingbuttonsui
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import { IconHeading1, IconHeading2, IconHeading3, IconHeading4, IconHeading5, IconHeading6 } from 'ckeditor5/src/icons.js';
|
|
11
|
-
import { getLocalizedOptions } from './utils.js';
|
|
12
|
-
const defaultIcons = /* #__PURE__ */ (() => ({
|
|
13
|
-
heading1: IconHeading1,
|
|
14
|
-
heading2: IconHeading2,
|
|
15
|
-
heading3: IconHeading3,
|
|
16
|
-
heading4: IconHeading4,
|
|
17
|
-
heading5: IconHeading5,
|
|
18
|
-
heading6: IconHeading6
|
|
19
|
-
}))();
|
|
20
|
-
/**
|
|
21
|
-
* The `HeadingButtonsUI` plugin defines a set of UI buttons that can be used instead of the
|
|
22
|
-
* standard drop down component.
|
|
23
|
-
*
|
|
24
|
-
* This feature is not enabled by default by the {@link module:heading/heading~Heading} plugin and needs to be
|
|
25
|
-
* installed manually to the editor configuration.
|
|
26
|
-
*
|
|
27
|
-
* Plugin introduces button UI elements, which names are same as `model` property from {@link module:heading/headingconfig~HeadingOption}.
|
|
28
|
-
*
|
|
29
|
-
* ```ts
|
|
30
|
-
* ClassicEditor
|
|
31
|
-
* .create( {
|
|
32
|
-
* plugins: [ ..., Heading, Paragraph, HeadingButtonsUI, ParagraphButtonUI ]
|
|
33
|
-
* heading: {
|
|
34
|
-
* options: [
|
|
35
|
-
* { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
|
36
|
-
* { model: 'heading1', view: 'h2', title: 'Heading 1', class: 'ck-heading_heading1' },
|
|
37
|
-
* { model: 'heading2', view: 'h3', title: 'Heading 2', class: 'ck-heading_heading2' },
|
|
38
|
-
* { model: 'heading3', view: 'h4', title: 'Heading 3', class: 'ck-heading_heading3' }
|
|
39
|
-
* ]
|
|
40
|
-
* },
|
|
41
|
-
* toolbar: [ 'paragraph', 'heading1', 'heading2', 'heading3' ]
|
|
42
|
-
* } )
|
|
43
|
-
* .then( ... )
|
|
44
|
-
* .catch( ... );
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* NOTE: The `'paragraph'` button is defined in by the {@link module:paragraph/paragraphbuttonui~ParagraphButtonUI} plugin
|
|
48
|
-
* which needs to be loaded manually as well.
|
|
49
|
-
*
|
|
50
|
-
* It is possible to use custom icons by providing `icon` config option in {@link module:heading/headingconfig~HeadingOption}.
|
|
51
|
-
* For the default configuration standard icons are used.
|
|
52
|
-
*/
|
|
53
|
-
export class HeadingButtonsUI extends Plugin {
|
|
54
|
-
/**
|
|
55
|
-
* @inheritDoc
|
|
56
|
-
*/
|
|
57
|
-
init() {
|
|
58
|
-
const options = getLocalizedOptions(this.editor);
|
|
59
|
-
options
|
|
60
|
-
.filter(item => item.model !== 'paragraph')
|
|
61
|
-
.map(item => this._createButton(item));
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Creates single button view from provided configuration option.
|
|
65
|
-
*/
|
|
66
|
-
_createButton(option) {
|
|
67
|
-
const editor = this.editor;
|
|
68
|
-
editor.ui.componentFactory.add(option.model, locale => {
|
|
69
|
-
const view = new ButtonView(locale);
|
|
70
|
-
const command = editor.commands.get('heading');
|
|
71
|
-
view.label = option.title;
|
|
72
|
-
view.icon = option.icon || defaultIcons[option.model];
|
|
73
|
-
view.tooltip = true;
|
|
74
|
-
view.isToggleable = true;
|
|
75
|
-
view.bind('isEnabled').to(command);
|
|
76
|
-
view.bind('isOn').to(command, 'value', value => value == option.model);
|
|
77
|
-
view.on('execute', () => {
|
|
78
|
-
editor.execute('heading', { value: option.model });
|
|
79
|
-
editor.editing.view.focus();
|
|
80
|
-
});
|
|
81
|
-
return view;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
package/src/headingcommand.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module heading/headingcommand
|
|
7
|
-
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core.js';
|
|
9
|
-
import { first } from 'ckeditor5/src/utils.js';
|
|
10
|
-
/**
|
|
11
|
-
* The heading command. It is used by the {@link module:heading/heading~Heading heading feature} to apply headings.
|
|
12
|
-
*/
|
|
13
|
-
export class HeadingCommand extends Command {
|
|
14
|
-
/**
|
|
15
|
-
* Set of defined model's elements names that this command support.
|
|
16
|
-
* See {@link module:heading/headingconfig~HeadingOption}.
|
|
17
|
-
*/
|
|
18
|
-
modelElements;
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of the command.
|
|
21
|
-
*
|
|
22
|
-
* @param editor Editor instance.
|
|
23
|
-
* @param modelElements Names of the element which this command can apply in the model.
|
|
24
|
-
*/
|
|
25
|
-
constructor(editor, modelElements) {
|
|
26
|
-
super(editor);
|
|
27
|
-
this.modelElements = modelElements;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
refresh() {
|
|
33
|
-
const block = first(this.editor.model.document.selection.getSelectedBlocks());
|
|
34
|
-
this.value = !!block && this.modelElements.includes(block.name) && block.name;
|
|
35
|
-
this.isEnabled = !!block && this.modelElements.some(heading => checkCanBecomeHeading(block, heading, this.editor.model.schema));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Executes the command. Applies the heading to the selected blocks or, if the first selected
|
|
39
|
-
* block is a heading already, turns selected headings (of this level only) to paragraphs.
|
|
40
|
-
*
|
|
41
|
-
* @param options.value Name of the element which this command will apply in the model.
|
|
42
|
-
* @fires execute
|
|
43
|
-
*/
|
|
44
|
-
execute(options) {
|
|
45
|
-
const model = this.editor.model;
|
|
46
|
-
const document = model.document;
|
|
47
|
-
const modelElement = options.value;
|
|
48
|
-
model.change(writer => {
|
|
49
|
-
const blocks = Array.from(document.selection.getSelectedBlocks())
|
|
50
|
-
.filter(block => {
|
|
51
|
-
return checkCanBecomeHeading(block, modelElement, model.schema);
|
|
52
|
-
});
|
|
53
|
-
for (const block of blocks) {
|
|
54
|
-
if (!block.is('element', modelElement)) {
|
|
55
|
-
writer.rename(block, modelElement);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Checks whether the given block can be replaced by a specific heading.
|
|
63
|
-
*
|
|
64
|
-
* @param block A block to be tested.
|
|
65
|
-
* @param heading Command element name in the model.
|
|
66
|
-
* @param schema The schema of the document.
|
|
67
|
-
*/
|
|
68
|
-
function checkCanBecomeHeading(block, heading, schema) {
|
|
69
|
-
return schema.checkChild(block.parent, heading) && !schema.isObject(block);
|
|
70
|
-
}
|