@ckeditor/ckeditor5-basic-styles 45.2.1 → 46.0.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/build/basic-styles.js +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/attributecommand.d.ts +6 -6
- package/src/attributecommand.js +5 -5
- package/src/bold/boldediting.d.ts +1 -1
- package/src/bold/boldediting.js +2 -2
- package/src/bold/boldui.d.ts +1 -1
- package/src/bold/boldui.js +1 -1
- package/src/bold.d.ts +3 -3
- package/src/bold.js +3 -3
- package/src/code/codeediting.d.ts +1 -1
- package/src/code/codeediting.js +2 -2
- package/src/code/codeui.d.ts +1 -1
- package/src/code/codeui.js +1 -1
- package/src/code.d.ts +3 -3
- package/src/code.js +3 -3
- package/src/index.d.ts +23 -22
- package/src/index.js +23 -22
- package/src/italic/italicediting.d.ts +1 -1
- package/src/italic/italicediting.js +2 -2
- package/src/italic/italicui.d.ts +1 -1
- package/src/italic/italicui.js +1 -1
- package/src/italic.d.ts +3 -3
- package/src/italic.js +3 -3
- package/src/strikethrough/strikethroughediting.d.ts +1 -1
- package/src/strikethrough/strikethroughediting.js +2 -2
- package/src/strikethrough/strikethroughui.d.ts +1 -1
- package/src/strikethrough/strikethroughui.js +1 -1
- package/src/strikethrough.d.ts +3 -3
- package/src/strikethrough.js +3 -3
- package/src/subscript/subscriptediting.d.ts +1 -1
- package/src/subscript/subscriptediting.js +2 -2
- package/src/subscript/subscriptui.d.ts +1 -1
- package/src/subscript/subscriptui.js +1 -1
- package/src/subscript.d.ts +3 -3
- package/src/subscript.js +3 -3
- package/src/superscript/superscriptediting.d.ts +1 -1
- package/src/superscript/superscriptediting.js +2 -2
- package/src/superscript/superscriptui.d.ts +1 -1
- package/src/superscript/superscriptui.js +1 -1
- package/src/superscript.d.ts +3 -3
- package/src/superscript.js +3 -3
- package/src/underline/underlineediting.d.ts +1 -1
- package/src/underline/underlineediting.js +2 -2
- package/src/underline/underlineui.d.ts +1 -1
- package/src/underline/underlineui.js +1 -1
- package/src/underline.d.ts +3 -3
- package/src/underline.js +3 -3
- package/src/utils.d.ts +2 -0
- package/src/utils.js +2 -0
package/src/subscript.js
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
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
|
*/
|
|
@@ -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
|
*/
|
package/src/superscript.d.ts
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
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
|
@@ -6,15 +6,15 @@
|
|
|
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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
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
|
*/
|
package/src/underline.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
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
|
@@ -6,8 +6,8 @@
|
|
|
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
|
@@ -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
|
@@ -5,6 +5,8 @@
|
|
|
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) => {
|