@ckeditor/ckeditor5-basic-styles 0.0.0-internal-20241017.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 +11 -6
- package/README.md +19 -8
- package/build/basic-styles.js +2 -2
- package/build/translations/be.js +1 -0
- package/build/translations/kk.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 +4 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +19 -33
- 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 +3 -3
- package/dist/translations/ar.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/bs.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/cs.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/en.umd.js +3 -3
- 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 +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 +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 +3 -3
- package/dist/translations/fa.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/fr.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/he.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/hr.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/it.umd.js +3 -3
- 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 +3 -3
- package/dist/translations/jv.umd.js +3 -3
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +5 -0
- package/dist/translations/kk.umd.js +11 -0
- 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 +3 -3
- package/dist/translations/kn.umd.js +3 -3
- 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 +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 +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 +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 +2 -2
- package/dist/translations/si.umd.js +2 -2
- 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 +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 +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 +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 +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 +2 -2
- package/dist/translations/ur.umd.js +2 -2
- 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 +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 +4 -10
- package/lang/translations/ar.po +5 -11
- package/lang/translations/ast.po +4 -10
- package/lang/translations/az.po +4 -10
- package/lang/translations/be.po +60 -0
- package/lang/translations/bg.po +4 -10
- package/lang/translations/bn.po +4 -10
- package/lang/translations/bs.po +5 -11
- package/lang/translations/ca.po +4 -10
- package/lang/translations/cs.po +5 -11
- package/lang/translations/da.po +4 -10
- package/lang/translations/de-ch.po +4 -10
- package/lang/translations/de.po +4 -10
- package/lang/translations/el.po +4 -10
- package/lang/translations/en-au.po +4 -10
- package/lang/translations/en-gb.po +4 -10
- package/lang/translations/en.po +6 -12
- package/lang/translations/eo.po +4 -10
- package/lang/translations/es-co.po +5 -11
- package/lang/translations/es.po +5 -11
- package/lang/translations/et.po +4 -10
- package/lang/translations/eu.po +4 -10
- package/lang/translations/fa.po +5 -11
- package/lang/translations/fi.po +4 -10
- package/lang/translations/fr.po +5 -11
- package/lang/translations/gl.po +4 -10
- package/lang/translations/gu.po +4 -10
- package/lang/translations/he.po +5 -11
- package/lang/translations/hi.po +4 -10
- package/lang/translations/hr.po +5 -11
- package/lang/translations/hu.po +4 -10
- package/lang/translations/hy.po +4 -10
- package/lang/translations/id.po +4 -10
- package/lang/translations/it.po +5 -11
- package/lang/translations/ja.po +4 -10
- package/lang/translations/jv.po +5 -11
- package/lang/translations/kk.po +60 -0
- package/lang/translations/km.po +4 -10
- package/lang/translations/kn.po +5 -11
- package/lang/translations/ko.po +4 -10
- package/lang/translations/ku.po +4 -10
- package/lang/translations/lt.po +5 -11
- package/lang/translations/lv.po +5 -11
- package/lang/translations/ms.po +4 -10
- package/lang/translations/nb.po +4 -10
- package/lang/translations/ne.po +4 -10
- package/lang/translations/nl.po +4 -10
- package/lang/translations/no.po +4 -10
- package/lang/translations/oc.po +4 -10
- package/lang/translations/pl.po +5 -11
- package/lang/translations/pt-br.po +5 -11
- package/lang/translations/pt.po +5 -11
- package/lang/translations/ro.po +5 -11
- package/lang/translations/ru.po +5 -11
- package/lang/translations/si.po +4 -10
- package/lang/translations/sk.po +5 -11
- package/lang/translations/sl.po +5 -11
- package/lang/translations/sq.po +4 -10
- package/lang/translations/sr-latn.po +5 -11
- package/lang/translations/sr.po +5 -11
- package/lang/translations/sv.po +4 -10
- package/lang/translations/th.po +4 -10
- package/lang/translations/ti.po +4 -10
- package/lang/translations/tk.po +4 -10
- package/lang/translations/tr.po +4 -10
- package/lang/translations/tt.po +4 -10
- package/lang/translations/ug.po +5 -11
- package/lang/translations/uk.po +5 -11
- package/lang/translations/ur.po +4 -10
- package/lang/translations/uz.po +5 -11
- package/lang/translations/vi.po +4 -10
- package/lang/translations/zh-cn.po +4 -10
- package/lang/translations/zh.po +4 -10
- package/package.json +31 -7
- package/src/attributecommand.d.ts +8 -8
- package/src/attributecommand.js +11 -7
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +2 -2
- package/src/bold/boldediting.d.ts +3 -3
- package/src/bold/boldediting.js +4 -4
- package/src/bold/boldui.d.ts +3 -3
- package/src/bold/boldui.js +6 -5
- package/src/bold.d.ts +5 -5
- package/src/bold.js +5 -5
- package/src/code/codeediting.d.ts +3 -3
- package/src/code/codeediting.js +5 -10
- package/src/code/codeui.d.ts +3 -3
- package/src/code/codeui.js +5 -5
- package/src/code.d.ts +5 -5
- package/src/code.js +5 -5
- package/src/index.d.ts +25 -24
- package/src/index.js +25 -24
- package/src/italic/italicediting.d.ts +3 -3
- package/src/italic/italicediting.js +4 -4
- package/src/italic/italicui.d.ts +3 -3
- package/src/italic/italicui.js +5 -5
- package/src/italic.d.ts +5 -5
- package/src/italic.js +5 -5
- package/src/strikethrough/strikethroughediting.d.ts +3 -3
- package/src/strikethrough/strikethroughediting.js +4 -4
- package/src/strikethrough/strikethroughui.d.ts +3 -3
- package/src/strikethrough/strikethroughui.js +5 -5
- package/src/strikethrough.d.ts +5 -5
- package/src/strikethrough.js +5 -5
- package/src/subscript/subscriptediting.d.ts +3 -3
- package/src/subscript/subscriptediting.js +4 -4
- package/src/subscript/subscriptui.d.ts +3 -3
- package/src/subscript/subscriptui.js +5 -5
- package/src/subscript.d.ts +5 -5
- package/src/subscript.js +5 -5
- package/src/superscript/superscriptediting.d.ts +3 -3
- package/src/superscript/superscriptediting.js +4 -4
- package/src/superscript/superscriptui.d.ts +3 -3
- package/src/superscript/superscriptui.js +5 -5
- package/src/superscript.d.ts +5 -5
- package/src/superscript.js +5 -5
- package/src/underline/underlineediting.d.ts +3 -3
- package/src/underline/underlineediting.js +4 -4
- package/src/underline/underlineui.d.ts +3 -3
- package/src/underline/underlineui.js +5 -5
- package/src/underline.d.ts +5 -5
- package/src/underline.js +5 -5
- package/src/utils.d.ts +4 -2
- package/src/utils.js +4 -2
- package/theme/code.css +2 -2
- package/dist/attributecommand.d.ts +0 -78
- package/dist/augmentation.d.ts +0 -44
- package/dist/bold/boldediting.d.ts +0 -32
- package/dist/bold/boldui.d.ts +0 -29
- package/dist/bold.d.ts +0 -37
- package/dist/code/codeediting.d.ts +0 -37
- package/dist/code/codeui.d.ts +0 -30
- package/dist/code.d.ts +0 -38
- package/dist/index.d.ts +0 -34
- package/dist/italic/italicediting.d.ts +0 -32
- package/dist/italic/italicui.d.ts +0 -29
- package/dist/italic.d.ts +0 -37
- package/dist/strikethrough/strikethroughediting.d.ts +0 -33
- package/dist/strikethrough/strikethroughui.d.ts +0 -29
- package/dist/strikethrough.d.ts +0 -37
- package/dist/subscript/subscriptediting.d.ts +0 -32
- package/dist/subscript/subscriptui.d.ts +0 -29
- package/dist/subscript.d.ts +0 -34
- package/dist/superscript/superscriptediting.d.ts +0 -32
- package/dist/superscript/superscriptui.d.ts +0 -29
- package/dist/superscript.d.ts +0 -34
- package/dist/underline/underlineediting.d.ts +0 -32
- package/dist/underline/underlineui.d.ts +0 -29
- package/dist/underline.d.ts +0 -37
- package/dist/utils.d.ts +0 -24
- 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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/subscript/subscriptui
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { IconSubscript } from 'ckeditor5/src/icons.js';
|
|
9
10
|
import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
|
|
10
11
|
import { getButtonCreator } from '../utils.js';
|
|
11
|
-
import subscriptIcon from '../../theme/icons/subscript.svg';
|
|
12
12
|
const SUBSCRIPT = 'subscript';
|
|
13
13
|
/**
|
|
14
14
|
* The subscript UI feature. It introduces the Subscript button.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class SubscriptUI extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -36,7 +36,7 @@ export default class SubscriptUI extends Plugin {
|
|
|
36
36
|
editor,
|
|
37
37
|
commandName: SUBSCRIPT,
|
|
38
38
|
plugin: this,
|
|
39
|
-
icon:
|
|
39
|
+
icon: IconSubscript,
|
|
40
40
|
label: t('Subscript')
|
|
41
41
|
});
|
|
42
42
|
// Add subscript button to feature components.
|
package/src/subscript.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/subscript
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import SubscriptEditing from './subscript/subscriptediting.js';
|
|
10
|
-
import SubscriptUI from './subscript/subscriptui.js';
|
|
9
|
+
import { SubscriptEditing } from './subscript/subscriptediting.js';
|
|
10
|
+
import { SubscriptUI } from './subscript/subscriptui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The subscript feature.
|
|
13
13
|
*
|
|
14
14
|
* It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
|
|
15
15
|
* {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class Subscript extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/subscript.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/subscript
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import SubscriptEditing from './subscript/subscriptediting.js';
|
|
10
|
-
import SubscriptUI from './subscript/subscriptui.js';
|
|
9
|
+
import { SubscriptEditing } from './subscript/subscriptediting.js';
|
|
10
|
+
import { SubscriptUI } from './subscript/subscriptui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The subscript feature.
|
|
13
13
|
*
|
|
14
14
|
* It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
|
|
15
15
|
* {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class Subscript extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript/superscriptediting
|
|
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
12
12
|
* It registers the `super` command and introduces the `super` attribute in the model which renders to the view
|
|
13
13
|
* as a `<super>` element.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class SuperscriptEditing extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript/superscriptediting
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import AttributeCommand from '../attributecommand.js';
|
|
9
|
+
import { AttributeCommand } from '../attributecommand.js';
|
|
10
10
|
const SUPERSCRIPT = 'superscript';
|
|
11
11
|
/**
|
|
12
12
|
* The superscript editing feature.
|
|
@@ -14,7 +14,7 @@ const SUPERSCRIPT = 'superscript';
|
|
|
14
14
|
* It registers the `super` command and introduces the `super` attribute in the model which renders to the view
|
|
15
15
|
* as a `<super>` element.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class SuperscriptEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript/superscriptui
|
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* The superscript UI feature. It introduces the Superscript button.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class SuperscriptUI extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript/superscriptui
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { IconSuperscript } from 'ckeditor5/src/icons.js';
|
|
9
10
|
import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
|
|
10
11
|
import { getButtonCreator } from '../utils.js';
|
|
11
|
-
import superscriptIcon from '../../theme/icons/superscript.svg';
|
|
12
12
|
const SUPERSCRIPT = 'superscript';
|
|
13
13
|
/**
|
|
14
14
|
* The superscript UI feature. It introduces the Superscript button.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class SuperscriptUI extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -36,7 +36,7 @@ export default class SuperscriptUI extends Plugin {
|
|
|
36
36
|
editor,
|
|
37
37
|
commandName: SUPERSCRIPT,
|
|
38
38
|
plugin: this,
|
|
39
|
-
icon:
|
|
39
|
+
icon: IconSuperscript,
|
|
40
40
|
label: t('Superscript')
|
|
41
41
|
});
|
|
42
42
|
// Add superscript button to feature components.
|
package/src/superscript.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import SuperscriptEditing from './superscript/superscriptediting.js';
|
|
10
|
-
import SuperscriptUI from './superscript/superscriptui.js';
|
|
9
|
+
import { SuperscriptEditing } from './superscript/superscriptediting.js';
|
|
10
|
+
import { SuperscriptUI } from './superscript/superscriptui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The superscript feature.
|
|
13
13
|
*
|
|
14
14
|
* It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and
|
|
15
15
|
* {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class Superscript extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/superscript.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/superscript
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import SuperscriptEditing from './superscript/superscriptediting.js';
|
|
10
|
-
import SuperscriptUI from './superscript/superscriptui.js';
|
|
9
|
+
import { SuperscriptEditing } from './superscript/superscriptediting.js';
|
|
10
|
+
import { SuperscriptUI } from './superscript/superscriptui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The superscript feature.
|
|
13
13
|
*
|
|
14
14
|
* It loads the {@link module:basic-styles/superscript/superscriptediting~SuperscriptEditing} and
|
|
15
15
|
* {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class Superscript extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline/underlineediting
|
|
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
12
12
|
* It registers the `'underline'` command, the <kbd>Ctrl+U</kbd> keystroke
|
|
13
13
|
* and introduces the `underline` attribute in the model which renders to the view as an `<u>` element.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class UnderlineEditing extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline/underlineediting
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import AttributeCommand from '../attributecommand.js';
|
|
9
|
+
import { AttributeCommand } from '../attributecommand.js';
|
|
10
10
|
const UNDERLINE = 'underline';
|
|
11
11
|
/**
|
|
12
12
|
* The underline editing feature.
|
|
@@ -14,7 +14,7 @@ const UNDERLINE = 'underline';
|
|
|
14
14
|
* It registers the `'underline'` command, the <kbd>Ctrl+U</kbd> keystroke
|
|
15
15
|
* and introduces the `underline` attribute in the model which renders to the view as an `<u>` element.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class UnderlineEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline/underlineui
|
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* The underline UI feature. It introduces the Underline button.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class UnderlineUI extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline/underlineui
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { IconUnderline } from 'ckeditor5/src/icons.js';
|
|
9
10
|
import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
|
|
10
11
|
import { getButtonCreator } from '../utils.js';
|
|
11
|
-
import underlineIcon from '../../theme/icons/underline.svg';
|
|
12
12
|
const UNDERLINE = 'underline';
|
|
13
13
|
/**
|
|
14
14
|
* The underline UI feature. It introduces the Underline button.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class UnderlineUI extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -36,7 +36,7 @@ export default class UnderlineUI extends Plugin {
|
|
|
36
36
|
editor,
|
|
37
37
|
commandName: UNDERLINE,
|
|
38
38
|
plugin: this,
|
|
39
|
-
icon:
|
|
39
|
+
icon: IconUnderline,
|
|
40
40
|
label: t('Underline'),
|
|
41
41
|
keystroke: 'CTRL+U'
|
|
42
42
|
});
|
package/src/underline.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import UnderlineEditing from './underline/underlineediting.js';
|
|
10
|
-
import UnderlineUI from './underline/underlineui.js';
|
|
9
|
+
import { UnderlineEditing } from './underline/underlineediting.js';
|
|
10
|
+
import { UnderlineUI } from './underline/underlineui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The underline feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import UnderlineUI from './underline/underlineui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
|
|
18
18
|
* {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class Underline extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/underline.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/underline
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import UnderlineEditing from './underline/underlineediting.js';
|
|
10
|
-
import UnderlineUI from './underline/underlineui.js';
|
|
9
|
+
import { UnderlineEditing } from './underline/underlineediting.js';
|
|
10
|
+
import { UnderlineUI } from './underline/underlineui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The underline feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import UnderlineUI from './underline/underlineui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/underline/underlineediting~UnderlineEditing} and
|
|
18
18
|
* {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class Underline extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles/utils
|
|
@@ -9,6 +9,8 @@ import type { Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
import { MenuBarMenuListItemButtonView, type ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
|
11
11
|
* Returns a function that creates a (toolbar or menu bar) button for a basic style feature.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
12
14
|
*/
|
|
13
15
|
export declare function getButtonCreator({ editor, commandName, plugin, icon, label, keystroke }: {
|
|
14
16
|
editor: Editor;
|
package/src/utils.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
|
|
6
6
|
/**
|
|
7
7
|
* Returns a function that creates a (toolbar or menu bar) button for a basic style feature.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
8
10
|
*/
|
|
9
11
|
export function getButtonCreator({ editor, commandName, plugin, icon, label, keystroke }) {
|
|
10
12
|
return (ButtonClass) => {
|
package/theme/code.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
.ck-content code {
|
|
@@ -1,78 +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-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module basic-styles/attributecommand
|
|
11
|
-
*/
|
|
12
|
-
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
|
|
15
|
-
* that toggles a single attribute on a text or an element.
|
|
16
|
-
*
|
|
17
|
-
* `AttributeCommand` uses {@link module:engine/model/document~Document#selection}
|
|
18
|
-
* to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
|
|
19
|
-
*
|
|
20
|
-
* The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
|
|
21
|
-
* for the current selection and to which nodes the attribute can be applied.
|
|
22
|
-
*/
|
|
23
|
-
export default class AttributeCommand extends Command {
|
|
24
|
-
/**
|
|
25
|
-
* Flag indicating whether the command is active. The command is active when the
|
|
26
|
-
* {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that:
|
|
27
|
-
*
|
|
28
|
-
* * If the selection is not empty – That the attribute is set on the first node in the selection that allows this attribute.
|
|
29
|
-
* * If the selection is empty – That the selection has the attribute itself (which means that newly typed
|
|
30
|
-
* text will have this attribute, too).
|
|
31
|
-
*
|
|
32
|
-
* @observable
|
|
33
|
-
* @readonly
|
|
34
|
-
*/
|
|
35
|
-
value: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* The attribute that will be set by the command.
|
|
38
|
-
*/
|
|
39
|
-
readonly attributeKey: string;
|
|
40
|
-
/**
|
|
41
|
-
* @param attributeKey Attribute that will be set by the command.
|
|
42
|
-
*/
|
|
43
|
-
constructor(editor: Editor, attributeKey: string);
|
|
44
|
-
/**
|
|
45
|
-
* Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
|
|
46
|
-
*/
|
|
47
|
-
refresh(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Executes the command – applies the attribute to the selection or removes it from the selection.
|
|
50
|
-
*
|
|
51
|
-
* If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
|
|
52
|
-
*
|
|
53
|
-
* The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
|
|
54
|
-
*
|
|
55
|
-
* * If the selection is on a range, the command applies the attribute to all nodes in that range
|
|
56
|
-
* (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
|
|
57
|
-
* * If the selection is collapsed in a non-empty node, the command applies the attribute to the
|
|
58
|
-
* {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
|
|
59
|
-
* * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
|
|
60
|
-
* that the selection inherits all attributes from a node if it is in an empty node).
|
|
61
|
-
*
|
|
62
|
-
* @fires execute
|
|
63
|
-
* @param options Command options.
|
|
64
|
-
* @param options.forceValue If set, it will force the command behavior. If `true`,
|
|
65
|
-
* the command will apply the attribute, otherwise the command will remove the attribute.
|
|
66
|
-
* If not set, the command will look for its current value to decide what it should do.
|
|
67
|
-
*/
|
|
68
|
-
execute(options?: {
|
|
69
|
-
forceValue?: boolean;
|
|
70
|
-
}): void;
|
|
71
|
-
/**
|
|
72
|
-
* Checks the attribute value of the first node in the selection that allows the attribute.
|
|
73
|
-
* For the collapsed selection returns the selection attribute.
|
|
74
|
-
*
|
|
75
|
-
* @returns The attribute value.
|
|
76
|
-
*/
|
|
77
|
-
private _getValueFromFirstAllowedNode;
|
|
78
|
-
}
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,44 +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-oss-license
|
|
8
|
-
*/
|
|
9
|
-
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';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface PluginsMap {
|
|
12
|
-
[Superscript.pluginName]: Superscript;
|
|
13
|
-
[Subscript.pluginName]: Subscript;
|
|
14
|
-
[Bold.pluginName]: Bold;
|
|
15
|
-
[Code.pluginName]: Code;
|
|
16
|
-
[Code.pluginName]: Code;
|
|
17
|
-
[Code.pluginName]: Code;
|
|
18
|
-
[BoldUI.pluginName]: BoldUI;
|
|
19
|
-
[CodeEditing.pluginName]: CodeEditing;
|
|
20
|
-
[CodeUI.pluginName]: CodeUI;
|
|
21
|
-
[Italic.pluginName]: Italic;
|
|
22
|
-
[ItalicEditing.pluginName]: ItalicEditing;
|
|
23
|
-
[ItalicUI.pluginName]: ItalicUI;
|
|
24
|
-
[Strikethrough.pluginName]: Strikethrough;
|
|
25
|
-
[StrikethroughEditing.pluginName]: StrikethroughEditing;
|
|
26
|
-
[StrikethroughUI.pluginName]: StrikethroughUI;
|
|
27
|
-
[SubscriptEditing.pluginName]: SubscriptEditing;
|
|
28
|
-
[SubscriptUI.pluginName]: SubscriptUI;
|
|
29
|
-
[SuperscriptEditing.pluginName]: SuperscriptEditing;
|
|
30
|
-
[SuperscriptUI.pluginName]: SuperscriptUI;
|
|
31
|
-
[Underline.pluginName]: Underline;
|
|
32
|
-
[UnderlineEditing.pluginName]: UnderlineEditing;
|
|
33
|
-
[UnderlineUI.pluginName]: UnderlineUI;
|
|
34
|
-
}
|
|
35
|
-
interface CommandsMap {
|
|
36
|
-
bold: AttributeCommand;
|
|
37
|
-
code: AttributeCommand;
|
|
38
|
-
italic: AttributeCommand;
|
|
39
|
-
strikethrough: AttributeCommand;
|
|
40
|
-
subscript: AttributeCommand;
|
|
41
|
-
superscript: AttributeCommand;
|
|
42
|
-
underline: AttributeCommand;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,32 +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-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module basic-styles/bold/boldediting
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* The bold editing feature.
|
|
15
|
-
*
|
|
16
|
-
* It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
|
|
17
|
-
* as a `<strong>` element.
|
|
18
|
-
*/
|
|
19
|
-
export default class BoldEditing extends Plugin {
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get pluginName(): "BoldEditing";
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
static get isOfficialPlugin(): true;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
init(): void;
|
|
32
|
-
}
|
package/dist/bold/boldui.d.ts
DELETED
|
@@ -1,29 +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-oss-license
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module basic-styles/bold/boldui
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
/**
|
|
14
|
-
* The bold UI feature. It introduces the Bold button.
|
|
15
|
-
*/
|
|
16
|
-
export default class BoldUI extends Plugin {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
static get pluginName(): "BoldUI";
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
static get isOfficialPlugin(): true;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
init(): void;
|
|
29
|
-
}
|