@ckeditor/ckeditor5-source-editing 44.1.0 → 44.2.0-alpha.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/LICENSE.md +1 -1
- package/README.md +4 -4
- package/build/source-editing.js +3 -3
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +3 -4
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +6 -6
- package/dist/index.css.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +3 -3
- package/dist/translations/af.umd.js +3 -3
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +3 -3
- package/dist/translations/ar.umd.js +3 -3
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +3 -3
- package/dist/translations/ast.umd.js +3 -3
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +3 -3
- package/dist/translations/az.umd.js +3 -3
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +3 -3
- package/dist/translations/bg.umd.js +3 -3
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +3 -3
- package/dist/translations/bn.umd.js +3 -3
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +3 -3
- package/dist/translations/bs.umd.js +3 -3
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +3 -3
- package/dist/translations/ca.umd.js +3 -3
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +3 -3
- package/dist/translations/cs.umd.js +3 -3
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +3 -3
- package/dist/translations/da.umd.js +3 -3
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +3 -3
- package/dist/translations/de-ch.umd.js +3 -3
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +3 -3
- package/dist/translations/de.umd.js +3 -3
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +3 -3
- package/dist/translations/el.umd.js +3 -3
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +3 -3
- package/dist/translations/en-au.umd.js +3 -3
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +3 -3
- package/dist/translations/en-gb.umd.js +3 -3
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +3 -3
- package/dist/translations/en.umd.js +3 -3
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +3 -3
- package/dist/translations/eo.umd.js +3 -3
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +3 -3
- package/dist/translations/es-co.umd.js +3 -3
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +3 -3
- package/dist/translations/es.umd.js +3 -3
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +3 -3
- package/dist/translations/et.umd.js +3 -3
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +3 -3
- package/dist/translations/eu.umd.js +3 -3
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +3 -3
- package/dist/translations/fa.umd.js +3 -3
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +3 -3
- package/dist/translations/fi.umd.js +3 -3
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +3 -3
- package/dist/translations/fr.umd.js +3 -3
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +3 -3
- package/dist/translations/gl.umd.js +3 -3
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +3 -3
- package/dist/translations/gu.umd.js +3 -3
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +3 -3
- package/dist/translations/he.umd.js +3 -3
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +3 -3
- package/dist/translations/hi.umd.js +3 -3
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +3 -3
- package/dist/translations/hr.umd.js +3 -3
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +3 -3
- package/dist/translations/hu.umd.js +3 -3
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +3 -3
- package/dist/translations/hy.umd.js +3 -3
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +3 -3
- package/dist/translations/id.umd.js +3 -3
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +3 -3
- package/dist/translations/it.umd.js +3 -3
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +3 -3
- package/dist/translations/ja.umd.js +3 -3
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +3 -3
- package/dist/translations/jv.umd.js +3 -3
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +3 -3
- package/dist/translations/kk.umd.js +3 -3
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +3 -3
- package/dist/translations/km.umd.js +3 -3
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +3 -3
- package/dist/translations/kn.umd.js +3 -3
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +3 -3
- package/dist/translations/ko.umd.js +3 -3
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +3 -3
- package/dist/translations/ku.umd.js +3 -3
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +3 -3
- package/dist/translations/lt.umd.js +3 -3
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +3 -3
- package/dist/translations/lv.umd.js +3 -3
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +3 -3
- package/dist/translations/ms.umd.js +3 -3
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +3 -3
- package/dist/translations/nb.umd.js +3 -3
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +3 -3
- package/dist/translations/ne.umd.js +3 -3
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +3 -3
- package/dist/translations/nl.umd.js +3 -3
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +3 -3
- package/dist/translations/no.umd.js +3 -3
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +3 -3
- package/dist/translations/oc.umd.js +3 -3
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +3 -3
- package/dist/translations/pl.umd.js +3 -3
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +3 -3
- package/dist/translations/pt-br.umd.js +3 -3
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +3 -3
- package/dist/translations/pt.umd.js +3 -3
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +3 -3
- package/dist/translations/ro.umd.js +3 -3
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +3 -3
- package/dist/translations/ru.umd.js +3 -3
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +3 -3
- package/dist/translations/si.umd.js +3 -3
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +3 -3
- package/dist/translations/sk.umd.js +3 -3
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +3 -3
- package/dist/translations/sl.umd.js +3 -3
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +3 -3
- package/dist/translations/sq.umd.js +3 -3
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +3 -3
- package/dist/translations/sr-latn.umd.js +3 -3
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +3 -3
- package/dist/translations/sr.umd.js +3 -3
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +3 -3
- package/dist/translations/sv.umd.js +3 -3
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +3 -3
- package/dist/translations/th.umd.js +3 -3
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +3 -3
- package/dist/translations/ti.umd.js +3 -3
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +3 -3
- package/dist/translations/tk.umd.js +3 -3
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +3 -3
- package/dist/translations/tr.umd.js +3 -3
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +3 -3
- package/dist/translations/tt.umd.js +3 -3
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +3 -3
- package/dist/translations/ug.umd.js +3 -3
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +3 -3
- package/dist/translations/uk.umd.js +3 -3
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +3 -3
- package/dist/translations/ur.umd.js +3 -3
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +3 -3
- package/dist/translations/uz.umd.js +3 -3
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +3 -3
- package/dist/translations/vi.umd.js +3 -3
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +3 -3
- package/dist/translations/zh-cn.umd.js +3 -3
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +3 -3
- package/dist/translations/zh.umd.js +3 -3
- package/lang/contexts.json +0 -1
- package/lang/translations/af.po +1 -5
- package/lang/translations/ar.po +1 -5
- package/lang/translations/ast.po +1 -5
- package/lang/translations/az.po +1 -5
- package/lang/translations/bg.po +1 -5
- package/lang/translations/bn.po +1 -5
- package/lang/translations/bs.po +1 -5
- package/lang/translations/ca.po +1 -5
- package/lang/translations/cs.po +1 -5
- package/lang/translations/da.po +1 -5
- package/lang/translations/de-ch.po +1 -5
- package/lang/translations/de.po +1 -5
- package/lang/translations/el.po +1 -5
- package/lang/translations/en-au.po +1 -5
- package/lang/translations/en-gb.po +1 -5
- package/lang/translations/en.po +1 -5
- package/lang/translations/eo.po +1 -5
- package/lang/translations/es-co.po +1 -5
- package/lang/translations/es.po +1 -5
- package/lang/translations/et.po +1 -5
- package/lang/translations/eu.po +1 -5
- package/lang/translations/fa.po +1 -5
- package/lang/translations/fi.po +1 -5
- package/lang/translations/fr.po +1 -5
- package/lang/translations/gl.po +1 -5
- package/lang/translations/gu.po +1 -5
- package/lang/translations/he.po +1 -5
- package/lang/translations/hi.po +1 -5
- package/lang/translations/hr.po +1 -5
- package/lang/translations/hu.po +1 -5
- package/lang/translations/hy.po +1 -5
- package/lang/translations/id.po +1 -5
- package/lang/translations/it.po +1 -5
- package/lang/translations/ja.po +1 -5
- package/lang/translations/jv.po +1 -5
- package/lang/translations/kk.po +1 -5
- package/lang/translations/km.po +1 -5
- package/lang/translations/kn.po +1 -5
- package/lang/translations/ko.po +1 -5
- package/lang/translations/ku.po +1 -5
- package/lang/translations/lt.po +1 -5
- package/lang/translations/lv.po +1 -5
- package/lang/translations/ms.po +1 -5
- package/lang/translations/nb.po +1 -5
- package/lang/translations/ne.po +1 -5
- package/lang/translations/nl.po +1 -5
- package/lang/translations/no.po +1 -5
- package/lang/translations/oc.po +1 -5
- package/lang/translations/pl.po +1 -5
- package/lang/translations/pt-br.po +1 -5
- package/lang/translations/pt.po +1 -5
- package/lang/translations/ro.po +1 -5
- package/lang/translations/ru.po +1 -5
- package/lang/translations/si.po +1 -5
- package/lang/translations/sk.po +1 -5
- package/lang/translations/sl.po +1 -5
- package/lang/translations/sq.po +1 -5
- package/lang/translations/sr-latn.po +1 -5
- package/lang/translations/sr.po +1 -5
- package/lang/translations/sv.po +1 -5
- package/lang/translations/th.po +1 -5
- package/lang/translations/ti.po +1 -5
- package/lang/translations/tk.po +1 -5
- package/lang/translations/tr.po +1 -5
- package/lang/translations/tt.po +1 -5
- package/lang/translations/ug.po +1 -5
- package/lang/translations/uk.po +1 -5
- package/lang/translations/ur.po +1 -5
- package/lang/translations/uz.po +1 -5
- package/lang/translations/vi.po +1 -5
- package/lang/translations/zh-cn.po +1 -5
- package/lang/translations/zh.po +1 -5
- package/package.json +29 -7
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/sourceediting.d.ts +2 -2
- package/src/sourceediting.js +5 -6
- package/src/sourceeditingconfig.d.ts +2 -2
- package/src/sourceeditingconfig.js +1 -1
- package/src/utils/formathtml.d.ts +1 -1
- package/src/utils/formathtml.js +1 -1
- package/theme/sourceediting.css +1 -1
- package/dist/augmentation.d.ts +0 -22
- package/dist/index.d.ts +0 -14
- package/dist/sourceediting.d.ts +0 -112
- package/dist/sourceeditingconfig.d.ts +0 -38
- package/dist/utils/formathtml.d.ts +0 -23
- package/theme/icons/source-editing.svg +0 -1
package/lang/translations/ti.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr ""
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/tk.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr ""
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/tr.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "Kaynak"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr "Kaynağı göster"
|
package/lang/translations/tt.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr ""
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/ug.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "مەنبە"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/uk.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
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
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "Джерело"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr "Показати джерело"
|
package/lang/translations/ur.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "مآخذ"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/uz.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr ""
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr ""
|
package/lang/translations/vi.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "Nguồn"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr "Hiển thị nguồn"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "源代码"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr "显示源代码"
|
package/lang/translations/zh.po
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2003-
|
1
|
+
# Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
2
2
|
#
|
3
3
|
# Want to contribute to this file? Submit your changes via a GitHub Pull Request.
|
4
4
|
#
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11
11
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
12
12
|
"Content-Type: text/plain; charset=UTF-8\n"
|
13
13
|
|
14
|
-
msgctxt "The label of the source editing feature toolbar button."
|
15
|
-
msgid "Source"
|
16
|
-
msgstr "原始碼"
|
17
|
-
|
18
14
|
msgctxt "The accessible label of the menu bar button that changes the editor mode to raw source (HTML) editing."
|
19
15
|
msgid "Show source"
|
20
16
|
msgstr "顯示來源"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing",
|
3
|
-
"version": "44.
|
3
|
+
"version": "44.2.0-alpha.1",
|
4
4
|
"description": "Source editing feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -13,11 +13,11 @@
|
|
13
13
|
"type": "module",
|
14
14
|
"main": "src/index.js",
|
15
15
|
"dependencies": {
|
16
|
-
"@ckeditor/ckeditor5-core": "44.
|
17
|
-
"@ckeditor/ckeditor5-ui": "44.
|
18
|
-
"@ckeditor/ckeditor5-utils": "44.
|
19
|
-
"@ckeditor/ckeditor5-theme-lark": "44.
|
20
|
-
"ckeditor5": "44.
|
16
|
+
"@ckeditor/ckeditor5-core": "44.2.0-alpha.1",
|
17
|
+
"@ckeditor/ckeditor5-ui": "44.2.0-alpha.1",
|
18
|
+
"@ckeditor/ckeditor5-utils": "44.2.0-alpha.1",
|
19
|
+
"@ckeditor/ckeditor5-theme-lark": "44.2.0-alpha.1",
|
20
|
+
"ckeditor5": "44.2.0-alpha.1"
|
21
21
|
},
|
22
22
|
"author": "CKSource (http://cksource.com/)",
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
@@ -38,5 +38,27 @@
|
|
38
38
|
"ckeditor5-metadata.json",
|
39
39
|
"CHANGELOG.md"
|
40
40
|
],
|
41
|
-
"types": "src/index.d.ts"
|
41
|
+
"types": "src/index.d.ts",
|
42
|
+
"exports": {
|
43
|
+
".": {
|
44
|
+
"types": "./src/index.d.ts",
|
45
|
+
"import": "./src/index.js",
|
46
|
+
"default": "./src/index.js"
|
47
|
+
},
|
48
|
+
"./dist/*": {
|
49
|
+
"types": "./src/index.d.ts",
|
50
|
+
"import": "./dist/*",
|
51
|
+
"default": "./dist/*"
|
52
|
+
},
|
53
|
+
"./src/*": {
|
54
|
+
"types": "./src/*.d.ts",
|
55
|
+
"import": "./src/*",
|
56
|
+
"default": "./src/*"
|
57
|
+
},
|
58
|
+
"./build/*": "./build/*",
|
59
|
+
"./lang/*": "./lang/*",
|
60
|
+
"./theme/*": "./theme/*",
|
61
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
62
|
+
"./package.json": "./package.json"
|
63
|
+
}
|
42
64
|
}
|
package/src/augmentation.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
import type { SourceEditing, SourceEditingConfig } from './index.js';
|
package/src/augmentation.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
export {};
|
package/src/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
package/src/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
package/src/sourceediting.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
@@ -12,7 +12,7 @@ import '../theme/sourceediting.css';
|
|
12
12
|
*
|
13
13
|
* It provides the possibility to view and edit the source of the document.
|
14
14
|
*
|
15
|
-
* For a detailed overview, check the {@glink features/source-editing source editing feature documentation} and the
|
15
|
+
* For a detailed overview, check the {@glink features/source-editing/source-editing source editing feature documentation} and the
|
16
16
|
* {@glink api/source-editing package page}.
|
17
17
|
*/
|
18
18
|
export default class SourceEditing extends Plugin {
|
package/src/sourceediting.js
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module source-editing/sourceediting
|
7
7
|
*/
|
8
8
|
/* global console */
|
9
|
-
import { Plugin, PendingActions } from 'ckeditor5/src/core.js';
|
9
|
+
import { Plugin, PendingActions, icons } from 'ckeditor5/src/core.js';
|
10
10
|
import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
|
11
11
|
import { CKEditorError, createElement, ElementReplacer } from 'ckeditor5/src/utils.js';
|
12
12
|
import { formatHtml } from './utils/formathtml.js';
|
13
13
|
import '../theme/sourceediting.css';
|
14
|
-
import sourceEditingIcon from '../theme/icons/source-editing.svg';
|
15
14
|
const COMMAND_FORCE_DISABLE_ID = 'SourceEditingMode';
|
16
15
|
/**
|
17
16
|
* The source editing feature.
|
18
17
|
*
|
19
18
|
* It provides the possibility to view and edit the source of the document.
|
20
19
|
*
|
21
|
-
* For a detailed overview, check the {@glink features/source-editing source editing feature documentation} and the
|
20
|
+
* For a detailed overview, check the {@glink features/source-editing/source-editing source editing feature documentation} and the
|
22
21
|
* {@glink api/source-editing package page}.
|
23
22
|
*/
|
24
23
|
export default class SourceEditing extends Plugin {
|
@@ -62,7 +61,7 @@ export default class SourceEditing extends Plugin {
|
|
62
61
|
const buttonView = this._createButton(ButtonView);
|
63
62
|
buttonView.set({
|
64
63
|
label: t('Source'),
|
65
|
-
icon:
|
64
|
+
icon: icons.source,
|
66
65
|
tooltip: true,
|
67
66
|
class: 'ck-source-editing-button'
|
68
67
|
});
|
@@ -127,7 +126,7 @@ export default class SourceEditing extends Plugin {
|
|
127
126
|
/**
|
128
127
|
* Source editing feature is not fully compatible with real-time collaboration,
|
129
128
|
* and using it may lead to data loss. Please read
|
130
|
-
* {@glink features/source-editing#limitations-and-incompatibilities source editing feature guide} to learn more.
|
129
|
+
* {@glink features/source-editing/source-editing#limitations-and-incompatibilities source editing feature guide} to learn more.
|
131
130
|
*
|
132
131
|
* If you understand the possible risk of data loss, you can enable the source editing
|
133
132
|
* by setting the
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
@@ -26,7 +26,7 @@ export interface SourceEditingConfig {
|
|
26
26
|
* Set to `true` to enable source editing feature for real-time collaboration.
|
27
27
|
*
|
28
28
|
* Please note that source editing feature is not fully compatible with real-time collaboration and using it may lead to data loss.
|
29
|
-
* {@glink features/source-editing#limitations-and-incompatibilities Read more}.
|
29
|
+
* {@glink features/source-editing/source-editing#limitations-and-incompatibilities Read more}.
|
30
30
|
*
|
31
31
|
* @default false
|
32
32
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
package/src/utils/formathtml.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
4
4
|
*/
|
5
5
|
/**
|
package/theme/sourceediting.css
CHANGED
package/dist/augmentation.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
import type { SourceEditing, SourceEditingConfig } from './index.js';
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
11
|
-
interface EditorConfig {
|
12
|
-
/**
|
13
|
-
* The configuration of the source editing feature.
|
14
|
-
*
|
15
|
-
* Read more in {@link module:source-editing/sourceeditingconfig~SourceEditingConfig}.
|
16
|
-
*/
|
17
|
-
sourceEditing?: SourceEditingConfig;
|
18
|
-
}
|
19
|
-
interface PluginsMap {
|
20
|
-
[SourceEditing.pluginName]: SourceEditing;
|
21
|
-
}
|
22
|
-
}
|
package/dist/index.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module source-editing
|
11
|
-
*/
|
12
|
-
export { default as SourceEditing } from './sourceediting.js';
|
13
|
-
export type { SourceEditingConfig } from './sourceeditingconfig.js';
|
14
|
-
import './augmentation.js';
|
package/dist/sourceediting.d.ts
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module source-editing/sourceediting
|
11
|
-
*/
|
12
|
-
import { type Editor, Plugin, PendingActions } from 'ckeditor5/src/core.js';
|
13
|
-
import '../theme/sourceediting.css';
|
14
|
-
/**
|
15
|
-
* The source editing feature.
|
16
|
-
*
|
17
|
-
* It provides the possibility to view and edit the source of the document.
|
18
|
-
*
|
19
|
-
* For a detailed overview, check the {@glink features/source-editing source editing feature documentation} and the
|
20
|
-
* {@glink api/source-editing package page}.
|
21
|
-
*/
|
22
|
-
export default class SourceEditing extends Plugin {
|
23
|
-
/**
|
24
|
-
* @inheritDoc
|
25
|
-
*/
|
26
|
-
static get pluginName(): "SourceEditing";
|
27
|
-
/**
|
28
|
-
* @inheritDoc
|
29
|
-
*/
|
30
|
-
static get isOfficialPlugin(): true;
|
31
|
-
/**
|
32
|
-
* @inheritDoc
|
33
|
-
*/
|
34
|
-
static get requires(): readonly [typeof PendingActions];
|
35
|
-
/**
|
36
|
-
* Flag indicating whether the document source mode is active.
|
37
|
-
*
|
38
|
-
* @observable
|
39
|
-
*/
|
40
|
-
isSourceEditingMode: boolean;
|
41
|
-
/**
|
42
|
-
* The element replacer instance used to replace the editing roots with the wrapper elements containing the document source.
|
43
|
-
*/
|
44
|
-
private _elementReplacer;
|
45
|
-
/**
|
46
|
-
* Maps all root names to wrapper elements containing the document source.
|
47
|
-
*/
|
48
|
-
private _replacedRoots;
|
49
|
-
/**
|
50
|
-
* Maps all root names to their document data.
|
51
|
-
*/
|
52
|
-
private _dataFromRoots;
|
53
|
-
/**
|
54
|
-
* @inheritDoc
|
55
|
-
*/
|
56
|
-
constructor(editor: Editor);
|
57
|
-
/**
|
58
|
-
* @inheritDoc
|
59
|
-
*/
|
60
|
-
init(): void;
|
61
|
-
/**
|
62
|
-
* Updates the source data in all hidden editing roots.
|
63
|
-
*/
|
64
|
-
updateEditorData(): void;
|
65
|
-
private _checkCompatibility;
|
66
|
-
/**
|
67
|
-
* Creates source editing wrappers that replace each editing root. Each wrapper contains the document source from the corresponding
|
68
|
-
* root.
|
69
|
-
*
|
70
|
-
* The wrapper element contains a textarea and it solves the problem, that the textarea element cannot auto expand its height based on
|
71
|
-
* the content it contains. The solution is to make the textarea more like a plain div element, which expands in height as much as it
|
72
|
-
* needs to, in order to display the whole document source without scrolling. The wrapper element is a parent for the textarea and for
|
73
|
-
* the pseudo-element `::after`, that replicates the look, content, and position of the textarea. The pseudo-element replica is hidden,
|
74
|
-
* but it is styled to be an identical visual copy of the textarea with the same content. Then, the wrapper is a grid container and both
|
75
|
-
* of its children (the textarea and the `::after` pseudo-element) are positioned within a CSS grid to occupy the same grid cell. The
|
76
|
-
* content in the pseudo-element `::after` is set in CSS and it stretches the grid to the appropriate size based on the textarea value.
|
77
|
-
* Since both children occupy the same grid cell, both have always the same height.
|
78
|
-
*/
|
79
|
-
private _showSourceEditing;
|
80
|
-
/**
|
81
|
-
* Restores all hidden editing roots and sets the source data in them.
|
82
|
-
*/
|
83
|
-
private _hideSourceEditing;
|
84
|
-
/**
|
85
|
-
* Focuses the textarea containing document source from the first editing root.
|
86
|
-
*/
|
87
|
-
private _focusSourceEditing;
|
88
|
-
/**
|
89
|
-
* Disables all commands.
|
90
|
-
*/
|
91
|
-
private _disableCommands;
|
92
|
-
/**
|
93
|
-
* Clears forced disable for all commands, that was previously set through {@link #_disableCommands}.
|
94
|
-
*/
|
95
|
-
private _enableCommands;
|
96
|
-
/**
|
97
|
-
* Adds or removes the `readonly` attribute from the textarea from all roots, if document source mode is active.
|
98
|
-
*
|
99
|
-
* @param isReadOnly Indicates whether all textarea elements should be read-only.
|
100
|
-
*/
|
101
|
-
private _handleReadOnlyMode;
|
102
|
-
/**
|
103
|
-
* Checks, if the plugin is allowed to handle the source editing mode by itself. Currently, the source editing mode is supported only
|
104
|
-
* for the {@link module:editor-classic/classiceditor~ClassicEditor classic editor}.
|
105
|
-
*/
|
106
|
-
private _isAllowedToHandleSourceEditingMode;
|
107
|
-
/**
|
108
|
-
* If any {@link module:ui/dialog/dialogview~DialogView editor dialog} is currently visible, hide it.
|
109
|
-
*/
|
110
|
-
private _hideVisibleDialog;
|
111
|
-
private _createButton;
|
112
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module source-editing/sourceeditingconfig
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
* The configuration of the source editing feature.
|
14
|
-
*
|
15
|
-
* ```ts
|
16
|
-
* ClassicEditor
|
17
|
-
* .create( {
|
18
|
-
* sourceEditing: {
|
19
|
-
* allowCollaborationFeatures: true
|
20
|
-
* }
|
21
|
-
* } )
|
22
|
-
* .then( ... )
|
23
|
-
* .catch( ... );
|
24
|
-
* ```
|
25
|
-
*
|
26
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
27
|
-
*/
|
28
|
-
export interface SourceEditingConfig {
|
29
|
-
/**
|
30
|
-
* Set to `true` to enable source editing feature for real-time collaboration.
|
31
|
-
*
|
32
|
-
* Please note that source editing feature is not fully compatible with real-time collaboration and using it may lead to data loss.
|
33
|
-
* {@glink features/source-editing#limitations-and-incompatibilities Read more}.
|
34
|
-
*
|
35
|
-
* @default false
|
36
|
-
*/
|
37
|
-
allowCollaborationFeatures?: boolean;
|
38
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module source-editing/utils/formathtml
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
* A simple (and naive) HTML code formatter that returns a formatted HTML markup that can be easily
|
14
|
-
* parsed by human eyes. It beautifies the HTML code by adding new lines between elements that behave like block elements
|
15
|
-
* (https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
|
16
|
-
* and a few more like `tr`, `td`, and similar ones) and inserting indents for nested content.
|
17
|
-
*
|
18
|
-
* WARNING: This function works only on a text that does not contain any indentations or new lines.
|
19
|
-
* Calling this function on the already formatted text will damage the formatting.
|
20
|
-
*
|
21
|
-
* @param input An HTML string to format.
|
22
|
-
*/
|
23
|
-
export declare function formatHtml(input: string): string;
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>
|