@ckeditor/ckeditor5-basic-styles 0.0.0-internal-20241206.0 → 0.0.0-internal-20251210.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/LICENSE.md +4 -4
- package/README.md +1 -1
- package/build/basic-styles.js +2 -2
- package/build/translations/be.js +1 -0
- package/ckeditor5-metadata.json +7 -7
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +175 -186
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +5 -0
- package/dist/translations/be.umd.js +11 -0
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/be.po +60 -0
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +14 -9
- package/src/attributecommand.d.ts +7 -7
- package/src/attributecommand.js +10 -6
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/bold/boldediting.d.ts +2 -2
- package/src/bold/boldediting.js +3 -3
- package/src/bold/boldui.d.ts +2 -2
- package/src/bold/boldui.js +5 -4
- package/src/bold.d.ts +4 -4
- package/src/bold.js +4 -4
- package/src/code/codeediting.d.ts +2 -2
- package/src/code/codeediting.js +4 -9
- package/src/code/codeui.d.ts +2 -2
- package/src/code/codeui.js +4 -4
- package/src/code.d.ts +4 -4
- package/src/code.js +4 -4
- package/src/index.d.ts +24 -23
- package/src/index.js +24 -23
- package/src/italic/italicediting.d.ts +2 -2
- package/src/italic/italicediting.js +3 -3
- package/src/italic/italicui.d.ts +2 -2
- package/src/italic/italicui.js +4 -4
- package/src/italic.d.ts +4 -4
- package/src/italic.js +4 -4
- package/src/strikethrough/strikethroughediting.d.ts +2 -2
- package/src/strikethrough/strikethroughediting.js +3 -3
- package/src/strikethrough/strikethroughui.d.ts +2 -2
- package/src/strikethrough/strikethroughui.js +4 -4
- package/src/strikethrough.d.ts +4 -4
- package/src/strikethrough.js +4 -4
- package/src/subscript/subscriptediting.d.ts +2 -2
- package/src/subscript/subscriptediting.js +3 -3
- package/src/subscript/subscriptui.d.ts +2 -2
- package/src/subscript/subscriptui.js +4 -4
- package/src/subscript.d.ts +4 -4
- package/src/subscript.js +4 -4
- package/src/superscript/superscriptediting.d.ts +2 -2
- package/src/superscript/superscriptediting.js +3 -3
- package/src/superscript/superscriptui.d.ts +2 -2
- package/src/superscript/superscriptui.js +4 -4
- package/src/superscript.d.ts +4 -4
- package/src/superscript.js +4 -4
- package/src/underline/underlineediting.d.ts +2 -2
- package/src/underline/underlineediting.js +3 -3
- package/src/underline/underlineui.d.ts +2 -2
- package/src/underline/underlineui.js +4 -4
- package/src/underline.d.ts +4 -4
- package/src/underline.js +4 -4
- package/src/utils.d.ts +3 -1
- package/src/utils.js +3 -1
- package/theme/code.css +1 -1
- package/theme/icons/code.svg +0 -1
- package/theme/icons/italic.svg +0 -1
- package/theme/icons/strikethrough.svg +0 -1
- package/theme/icons/subscript.svg +0 -1
- package/theme/icons/superscript.svg +0 -1
- package/theme/icons/underline.svg +0 -1
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/eo.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/eu.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/gu.po
CHANGED
package/lang/translations/he.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/hy.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/jv.po
CHANGED
package/lang/translations/kk.po
CHANGED
package/lang/translations/km.po
CHANGED
package/lang/translations/kn.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nb.po
CHANGED
package/lang/translations/ne.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/oc.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/si.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sl.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/ti.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-basic-styles",
|
|
3
|
-
"version": "0.0.0-internal-
|
|
3
|
+
"version": "0.0.0-internal-20251210.0",
|
|
4
4
|
"description": "Basic styles feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "0.0.0-internal-
|
|
17
|
-
"@ckeditor/ckeditor5-
|
|
18
|
-
"@ckeditor/ckeditor5-
|
|
19
|
-
"ckeditor5": "0.0.0-internal-
|
|
16
|
+
"@ckeditor/ckeditor5-core": "0.0.0-internal-20251210.0",
|
|
17
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-internal-20251210.0",
|
|
18
|
+
"@ckeditor/ckeditor5-typing": "0.0.0-internal-20251210.0",
|
|
19
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-internal-20251210.0",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-internal-20251210.0",
|
|
21
|
+
"ckeditor5": "0.0.0-internal-20251210.0"
|
|
20
22
|
},
|
|
21
23
|
"author": "CKSource (http://cksource.com/)",
|
|
22
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -41,15 +43,18 @@
|
|
|
41
43
|
"exports": {
|
|
42
44
|
".": {
|
|
43
45
|
"types": "./src/index.d.ts",
|
|
44
|
-
"import": "./src/index.js"
|
|
46
|
+
"import": "./src/index.js",
|
|
47
|
+
"default": "./src/index.js"
|
|
45
48
|
},
|
|
46
49
|
"./dist/*": {
|
|
47
50
|
"types": "./src/index.d.ts",
|
|
48
|
-
"import": "./dist/*"
|
|
51
|
+
"import": "./dist/*",
|
|
52
|
+
"default": "./dist/*"
|
|
49
53
|
},
|
|
50
54
|
"./src/*": {
|
|
51
|
-
"types": "./src
|
|
52
|
-
"import": "./src/*"
|
|
55
|
+
"types": "./src/*.d.ts",
|
|
56
|
+
"import": "./src/*",
|
|
57
|
+
"default": "./src/*"
|
|
53
58
|
},
|
|
54
59
|
"./build/*": "./build/*",
|
|
55
60
|
"./lang/*": "./lang/*",
|
|
@@ -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
|
/**
|
|
@@ -10,16 +10,16 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
|
10
10
|
* An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
|
|
11
11
|
* that toggles a single attribute on a text or an element.
|
|
12
12
|
*
|
|
13
|
-
* `AttributeCommand` uses {@link module:engine/model/document~
|
|
13
|
+
* `AttributeCommand` uses {@link module:engine/model/document~ModelDocument#selection}
|
|
14
14
|
* to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
|
|
15
15
|
*
|
|
16
16
|
* The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
|
|
17
17
|
* for the current selection and to which nodes the attribute can be applied.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class AttributeCommand extends Command {
|
|
20
20
|
/**
|
|
21
21
|
* Flag indicating whether the command is active. The command is active when the
|
|
22
|
-
* {@link module:engine/model/selection~
|
|
22
|
+
* {@link module:engine/model/selection~ModelSelection#hasAttribute selection has the attribute} which means that:
|
|
23
23
|
*
|
|
24
24
|
* * If the selection is not empty – That the attribute is set on the first node in the selection that allows this attribute.
|
|
25
25
|
* * If the selection is empty – That the selection has the attribute itself (which means that newly typed
|
|
@@ -46,12 +46,12 @@ export default class AttributeCommand extends Command {
|
|
|
46
46
|
*
|
|
47
47
|
* If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
|
|
48
48
|
*
|
|
49
|
-
* The execution result differs, depending on the {@link module:engine/model/document~
|
|
49
|
+
* The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection}:
|
|
50
50
|
*
|
|
51
51
|
* * If the selection is on a range, the command applies the attribute to all nodes in that range
|
|
52
|
-
* (if they are allowed to have this attribute by the {@link module:engine/model/schema~
|
|
52
|
+
* (if they are allowed to have this attribute by the {@link module:engine/model/schema~ModelSchema schema}).
|
|
53
53
|
* * If the selection is collapsed in a non-empty node, the command applies the attribute to the
|
|
54
|
-
* {@link module:engine/model/document~
|
|
54
|
+
* {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
|
|
55
55
|
* * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
|
|
56
56
|
* that the selection inherits all attributes from a node if it is in an empty node).
|
|
57
57
|
*
|
package/src/attributecommand.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
|
/**
|
|
@@ -10,13 +10,17 @@ import { Command } from 'ckeditor5/src/core.js';
|
|
|
10
10
|
* An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
|
|
11
11
|
* that toggles a single attribute on a text or an element.
|
|
12
12
|
*
|
|
13
|
-
* `AttributeCommand` uses {@link module:engine/model/document~
|
|
13
|
+
* `AttributeCommand` uses {@link module:engine/model/document~ModelDocument#selection}
|
|
14
14
|
* to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
|
|
15
15
|
*
|
|
16
16
|
* The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
|
|
17
17
|
* for the current selection and to which nodes the attribute can be applied.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export class AttributeCommand extends Command {
|
|
20
|
+
/**
|
|
21
|
+
* The attribute that will be set by the command.
|
|
22
|
+
*/
|
|
23
|
+
attributeKey;
|
|
20
24
|
/**
|
|
21
25
|
* @param attributeKey Attribute that will be set by the command.
|
|
22
26
|
*/
|
|
@@ -38,12 +42,12 @@ export default class AttributeCommand extends Command {
|
|
|
38
42
|
*
|
|
39
43
|
* If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
|
|
40
44
|
*
|
|
41
|
-
* The execution result differs, depending on the {@link module:engine/model/document~
|
|
45
|
+
* The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection}:
|
|
42
46
|
*
|
|
43
47
|
* * If the selection is on a range, the command applies the attribute to all nodes in that range
|
|
44
|
-
* (if they are allowed to have this attribute by the {@link module:engine/model/schema~
|
|
48
|
+
* (if they are allowed to have this attribute by the {@link module:engine/model/schema~ModelSchema schema}).
|
|
45
49
|
* * If the selection is collapsed in a non-empty node, the command applies the attribute to the
|
|
46
|
-
* {@link module:engine/model/document~
|
|
50
|
+
* {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
|
|
47
51
|
* * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
|
|
48
52
|
* that the selection inherits all attributes from a node if it is in an empty node).
|
|
49
53
|
*
|
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 { Superscript, Subscript, Bold, Code, AttributeCommand, BoldUI, CodeEditing, CodeUI, Italic, ItalicEditing, ItalicUI, Strikethrough, StrikethroughEditing, StrikethroughUI, SubscriptEditing, SubscriptUI, SuperscriptEditing, SuperscriptUI, Underline, UnderlineEditing, UnderlineUI } 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 {};
|
|
@@ -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 { Plugin } from 'ckeditor5/src/core.js';
|
|
|
12
12
|
* It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
|
|
13
13
|
* as a `<strong>` element.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class BoldEditing extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|