@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-basic-styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "46.0.0-alpha.1",
|
|
4
4
|
"description": "Basic styles feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "
|
|
17
|
-
"@ckeditor/ckeditor5-icons": "
|
|
18
|
-
"@ckeditor/ckeditor5-typing": "
|
|
19
|
-
"@ckeditor/ckeditor5-ui": "
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "
|
|
21
|
-
"ckeditor5": "
|
|
16
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
|
|
17
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
|
|
18
|
+
"@ckeditor/ckeditor5-typing": "46.0.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
|
|
21
|
+
"ckeditor5": "46.0.0-alpha.1"
|
|
22
22
|
},
|
|
23
23
|
"author": "CKSource (http://cksource.com/)",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -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
|
@@ -10,13 +10,13 @@ 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
20
|
/**
|
|
21
21
|
* The attribute that will be set by the command.
|
|
22
22
|
*/
|
|
@@ -42,12 +42,12 @@ export default class AttributeCommand extends Command {
|
|
|
42
42
|
*
|
|
43
43
|
* If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
|
|
44
44
|
*
|
|
45
|
-
* 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}:
|
|
46
46
|
*
|
|
47
47
|
* * If the selection is on a range, the command applies the attribute to all nodes in that range
|
|
48
|
-
* (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}).
|
|
49
49
|
* * If the selection is collapsed in a non-empty node, the command applies the attribute to the
|
|
50
|
-
* {@link module:engine/model/document~
|
|
50
|
+
* {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
|
|
51
51
|
* * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
|
|
52
52
|
* that the selection inherits all attributes from a node if it is in an empty node).
|
|
53
53
|
*
|
|
@@ -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
|
*/
|
package/src/bold/boldediting.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module basic-styles/bold/boldediting
|
|
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 BOLD = 'bold';
|
|
11
11
|
/**
|
|
12
12
|
* The bold editing feature.
|
|
@@ -14,7 +14,7 @@ const BOLD = 'bold';
|
|
|
14
14
|
* It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
|
|
15
15
|
* as a `<strong>` element.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class BoldEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/bold/boldui.d.ts
CHANGED
package/src/bold/boldui.js
CHANGED
package/src/bold.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/bold
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import BoldEditing from './bold/boldediting.js';
|
|
10
|
-
import BoldUI from './bold/boldui.js';
|
|
9
|
+
import { BoldEditing } from './bold/boldediting.js';
|
|
10
|
+
import { BoldUI } from './bold/boldui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The bold feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import BoldUI from './bold/boldui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature}
|
|
18
18
|
* and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class Bold extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/bold.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/bold
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import BoldEditing from './bold/boldediting.js';
|
|
10
|
-
import BoldUI from './bold/boldui.js';
|
|
9
|
+
import { BoldEditing } from './bold/boldediting.js';
|
|
10
|
+
import { BoldUI } from './bold/boldui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The bold feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import BoldUI from './bold/boldui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature}
|
|
18
18
|
* and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class Bold extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
@@ -13,7 +13,7 @@ import { TwoStepCaretMovement } from 'ckeditor5/src/typing.js';
|
|
|
13
13
|
* It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
|
|
14
14
|
* as a `<code>` element.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class CodeEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/code/codeediting.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { TwoStepCaretMovement, inlineHighlight } from 'ckeditor5/src/typing.js';
|
|
10
|
-
import AttributeCommand from '../attributecommand.js';
|
|
10
|
+
import { AttributeCommand } from '../attributecommand.js';
|
|
11
11
|
const CODE = 'code';
|
|
12
12
|
const HIGHLIGHT_CLASS = 'ck-code_selected';
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ const HIGHLIGHT_CLASS = 'ck-code_selected';
|
|
|
16
16
|
* It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
|
|
17
17
|
* as a `<code>` element.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export class CodeEditing extends Plugin {
|
|
20
20
|
/**
|
|
21
21
|
* @inheritDoc
|
|
22
22
|
*/
|
package/src/code/codeui.d.ts
CHANGED
package/src/code/codeui.js
CHANGED
package/src/code.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/code
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import CodeEditing from './code/codeediting.js';
|
|
10
|
-
import CodeUI from './code/codeui.js';
|
|
9
|
+
import { CodeEditing } from './code/codeediting.js';
|
|
10
|
+
import { CodeUI } from './code/codeui.js';
|
|
11
11
|
import '../theme/code.css';
|
|
12
12
|
/**
|
|
13
13
|
* The code feature.
|
|
@@ -18,7 +18,7 @@ import '../theme/code.css';
|
|
|
18
18
|
* This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
|
|
19
19
|
* and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class Code extends Plugin {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/code.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/code
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import CodeEditing from './code/codeediting.js';
|
|
10
|
-
import CodeUI from './code/codeui.js';
|
|
9
|
+
import { CodeEditing } from './code/codeediting.js';
|
|
10
|
+
import { CodeUI } from './code/codeui.js';
|
|
11
11
|
import '../theme/code.css';
|
|
12
12
|
/**
|
|
13
13
|
* The code feature.
|
|
@@ -18,7 +18,7 @@ import '../theme/code.css';
|
|
|
18
18
|
* This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
|
|
19
19
|
* and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export class Code extends Plugin {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/index.d.ts
CHANGED
|
@@ -5,26 +5,27 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
8
|
+
export { Bold } from './bold.js';
|
|
9
|
+
export { BoldEditing } from './bold/boldediting.js';
|
|
10
|
+
export { BoldUI } from './bold/boldui.js';
|
|
11
|
+
export { Code } from './code.js';
|
|
12
|
+
export { CodeEditing } from './code/codeediting.js';
|
|
13
|
+
export { CodeUI } from './code/codeui.js';
|
|
14
|
+
export { Italic } from './italic.js';
|
|
15
|
+
export { ItalicEditing } from './italic/italicediting.js';
|
|
16
|
+
export { ItalicUI } from './italic/italicui.js';
|
|
17
|
+
export { Strikethrough } from './strikethrough.js';
|
|
18
|
+
export { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
|
|
19
|
+
export { StrikethroughUI } from './strikethrough/strikethroughui.js';
|
|
20
|
+
export { Subscript } from './subscript.js';
|
|
21
|
+
export { SubscriptEditing } from './subscript/subscriptediting.js';
|
|
22
|
+
export { SubscriptUI } from './subscript/subscriptui.js';
|
|
23
|
+
export { Superscript } from './superscript.js';
|
|
24
|
+
export { SuperscriptEditing } from './superscript/superscriptediting.js';
|
|
25
|
+
export { SuperscriptUI } from './superscript/superscriptui.js';
|
|
26
|
+
export { Underline } from './underline.js';
|
|
27
|
+
export { UnderlineEditing } from './underline/underlineediting.js';
|
|
28
|
+
export { UnderlineUI } from './underline/underlineui.js';
|
|
29
|
+
export { AttributeCommand } from './attributecommand.js';
|
|
30
|
+
export { getButtonCreator as _getBasicStylesButtonCreator } from './utils.js';
|
|
30
31
|
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -5,26 +5,27 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module basic-styles
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
8
|
+
export { Bold } from './bold.js';
|
|
9
|
+
export { BoldEditing } from './bold/boldediting.js';
|
|
10
|
+
export { BoldUI } from './bold/boldui.js';
|
|
11
|
+
export { Code } from './code.js';
|
|
12
|
+
export { CodeEditing } from './code/codeediting.js';
|
|
13
|
+
export { CodeUI } from './code/codeui.js';
|
|
14
|
+
export { Italic } from './italic.js';
|
|
15
|
+
export { ItalicEditing } from './italic/italicediting.js';
|
|
16
|
+
export { ItalicUI } from './italic/italicui.js';
|
|
17
|
+
export { Strikethrough } from './strikethrough.js';
|
|
18
|
+
export { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
|
|
19
|
+
export { StrikethroughUI } from './strikethrough/strikethroughui.js';
|
|
20
|
+
export { Subscript } from './subscript.js';
|
|
21
|
+
export { SubscriptEditing } from './subscript/subscriptediting.js';
|
|
22
|
+
export { SubscriptUI } from './subscript/subscriptui.js';
|
|
23
|
+
export { Superscript } from './superscript.js';
|
|
24
|
+
export { SuperscriptEditing } from './superscript/superscriptediting.js';
|
|
25
|
+
export { SuperscriptUI } from './superscript/superscriptui.js';
|
|
26
|
+
export { Underline } from './underline.js';
|
|
27
|
+
export { UnderlineEditing } from './underline/underlineediting.js';
|
|
28
|
+
export { UnderlineUI } from './underline/underlineui.js';
|
|
29
|
+
export { AttributeCommand } from './attributecommand.js';
|
|
30
|
+
export { getButtonCreator as _getBasicStylesButtonCreator } from './utils.js';
|
|
30
31
|
import './augmentation.js';
|
|
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
12
12
|
* It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
|
|
13
13
|
* which renders to the view as an `<i>` element.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class ItalicEditing extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module basic-styles/italic/italicediting
|
|
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 ITALIC = 'italic';
|
|
11
11
|
/**
|
|
12
12
|
* The italic editing feature.
|
|
@@ -14,7 +14,7 @@ const ITALIC = 'italic';
|
|
|
14
14
|
* It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
|
|
15
15
|
* which renders to the view as an `<i>` element.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class ItalicEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/italic/italicui.d.ts
CHANGED
package/src/italic/italicui.js
CHANGED
package/src/italic.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/italic
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import ItalicEditing from './italic/italicediting.js';
|
|
10
|
-
import ItalicUI from './italic/italicui.js';
|
|
9
|
+
import { ItalicEditing } from './italic/italicediting.js';
|
|
10
|
+
import { ItalicUI } from './italic/italicui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The italic feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import ItalicUI from './italic/italicui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and
|
|
18
18
|
* {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class Italic extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/italic.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/italic
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import ItalicEditing from './italic/italicediting.js';
|
|
10
|
-
import ItalicUI from './italic/italicui.js';
|
|
9
|
+
import { ItalicEditing } from './italic/italicediting.js';
|
|
10
|
+
import { ItalicUI } from './italic/italicui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The italic feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import ItalicUI from './italic/italicui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/italic/italicediting~ItalicEditing} and
|
|
18
18
|
* {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class Italic extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
@@ -13,7 +13,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
13
13
|
* `strikethroughsthrough` attribute in the model which renders to the view
|
|
14
14
|
* as a `<s>` element.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class StrikethroughEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module basic-styles/strikethrough/strikethroughediting
|
|
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 STRIKETHROUGH = 'strikethrough';
|
|
11
11
|
/**
|
|
12
12
|
* The strikethrough editing feature.
|
|
@@ -15,7 +15,7 @@ const STRIKETHROUGH = 'strikethrough';
|
|
|
15
15
|
* `strikethroughsthrough` attribute in the model which renders to the view
|
|
16
16
|
* as a `<s>` element.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export class StrikethroughEditing extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* The strikethrough UI feature. It introduces the Strikethrough button.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class StrikethroughUI extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -13,7 +13,7 @@ const STRIKETHROUGH = 'strikethrough';
|
|
|
13
13
|
/**
|
|
14
14
|
* The strikethrough UI feature. It introduces the Strikethrough button.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export class StrikethroughUI extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
package/src/strikethrough.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/strikethrough
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import StrikethroughEditing from './strikethrough/strikethroughediting.js';
|
|
10
|
-
import StrikethroughUI from './strikethrough/strikethroughui.js';
|
|
9
|
+
import { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
|
|
10
|
+
import { StrikethroughUI } from './strikethrough/strikethroughui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The strikethrough feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import StrikethroughUI from './strikethrough/strikethroughui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
|
|
18
18
|
* {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class Strikethrough extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/strikethrough.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module basic-styles/strikethrough
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import StrikethroughEditing from './strikethrough/strikethroughediting.js';
|
|
10
|
-
import StrikethroughUI from './strikethrough/strikethroughui.js';
|
|
9
|
+
import { StrikethroughEditing } from './strikethrough/strikethroughediting.js';
|
|
10
|
+
import { StrikethroughUI } from './strikethrough/strikethroughui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The strikethrough feature.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ import StrikethroughUI from './strikethrough/strikethroughui.js';
|
|
|
17
17
|
* This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
|
|
18
18
|
* {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class Strikethrough extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
@@ -12,7 +12,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
12
12
|
* It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
|
|
13
13
|
* as a `<sub>` element.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class SubscriptEditing extends Plugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
18
18
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module basic-styles/subscript/subscriptediting
|
|
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 SUBSCRIPT = 'subscript';
|
|
11
11
|
/**
|
|
12
12
|
* The subscript editing feature.
|
|
@@ -14,7 +14,7 @@ const SUBSCRIPT = 'subscript';
|
|
|
14
14
|
* It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
|
|
15
15
|
* as a `<sub>` element.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class SubscriptEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/subscript.d.ts
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 declare class Subscript extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|