@ckeditor/ckeditor5-basic-styles 48.2.0 → 48.3.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/dist/attributecommand.d.ts +69 -69
- package/dist/augmentation.d.ts +38 -38
- package/dist/bold/boldediting.d.ts +23 -23
- package/dist/bold/boldui.d.ts +20 -20
- package/dist/bold.d.ts +28 -28
- package/dist/code/codeediting.d.ts +28 -28
- package/dist/code/codeui.d.ts +21 -21
- package/dist/code.d.ts +29 -29
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +1028 -937
- package/dist/index.js.map +1 -1
- package/dist/italic/italicediting.d.ts +23 -23
- package/dist/italic/italicui.d.ts +20 -20
- package/dist/italic.d.ts +28 -28
- package/dist/strikethrough/strikethroughediting.d.ts +24 -24
- package/dist/strikethrough/strikethroughui.d.ts +20 -20
- package/dist/strikethrough.d.ts +28 -28
- package/dist/subscript/subscriptediting.d.ts +23 -23
- package/dist/subscript/subscriptui.d.ts +20 -20
- package/dist/subscript.d.ts +25 -25
- package/dist/superscript/superscriptediting.d.ts +23 -23
- package/dist/superscript/superscriptui.d.ts +20 -20
- package/dist/superscript.d.ts +25 -25
- package/dist/underline/underlineediting.d.ts +23 -23
- package/dist/underline/underlineui.d.ts +20 -20
- package/dist/underline.d.ts +28 -28
- package/dist/utils.d.ts +17 -17
- package/package.json +7 -7
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module basic-styles/attributecommand
|
|
7
|
+
*/
|
|
8
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
* An extension of the base {@link module:core/command~Command} class, which provides utilities for a command
|
|
11
|
+
* that toggles a single attribute on a text or an element.
|
|
12
|
+
*
|
|
13
|
+
* `AttributeCommand` uses {@link module:engine/model/document~ModelDocument#selection}
|
|
14
|
+
* to decide which nodes (if any) should be changed, and applies or removes the attribute from them.
|
|
15
|
+
*
|
|
16
|
+
* The command checks the {@link module:engine/model/model~Model#schema} to decide if it can be enabled
|
|
17
|
+
* for the current selection and to which nodes the attribute can be applied.
|
|
18
|
+
*/
|
|
19
19
|
export declare class AttributeCommand extends Command {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Flag indicating whether the command is active. The command is active when the
|
|
22
|
+
* {@link module:engine/model/selection~ModelSelection#hasAttribute selection has the attribute} which means that:
|
|
23
|
+
*
|
|
24
|
+
* * If the selection is not empty – That the attribute is set on the first node in the selection that allows this attribute.
|
|
25
|
+
* * If the selection is empty – That the selection has the attribute itself (which means that newly typed
|
|
26
|
+
* text will have this attribute, too).
|
|
27
|
+
*
|
|
28
|
+
* @observable
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
value: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The attribute that will be set by the command.
|
|
34
|
+
*/
|
|
35
|
+
readonly attributeKey: string;
|
|
36
|
+
/**
|
|
37
|
+
* @param attributeKey Attribute that will be set by the command.
|
|
38
|
+
*/
|
|
39
|
+
constructor(editor: Editor, attributeKey: string);
|
|
40
|
+
/**
|
|
41
|
+
* Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
|
|
42
|
+
*/
|
|
43
|
+
override refresh(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Executes the command – applies the attribute to the selection or removes it from the selection.
|
|
46
|
+
*
|
|
47
|
+
* If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
|
|
48
|
+
*
|
|
49
|
+
* The execution result differs, depending on the {@link module:engine/model/document~ModelDocument#selection}:
|
|
50
|
+
*
|
|
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~ModelSchema schema}).
|
|
53
|
+
* * If the selection is collapsed in a non-empty node, the command applies the attribute to the
|
|
54
|
+
* {@link module:engine/model/document~ModelDocument#selection} itself (note that typed characters copy attributes from the selection).
|
|
55
|
+
* * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
|
|
56
|
+
* that the selection inherits all attributes from a node if it is in an empty node).
|
|
57
|
+
*
|
|
58
|
+
* @fires execute
|
|
59
|
+
* @param options Command options.
|
|
60
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`,
|
|
61
|
+
* the command will apply the attribute, otherwise the command will remove the attribute.
|
|
62
|
+
* If not set, the command will look for its current value to decide what it should do.
|
|
63
|
+
*/
|
|
64
|
+
override execute(options?: {
|
|
65
|
+
forceValue?: boolean;
|
|
66
|
+
}): void;
|
|
67
|
+
/**
|
|
68
|
+
* Checks the attribute value of the first node in the selection that allows the attribute.
|
|
69
|
+
* For the collapsed selection returns the selection attribute.
|
|
70
|
+
*
|
|
71
|
+
* @returns The attribute value.
|
|
72
|
+
*/
|
|
73
|
+
private _getValueFromFirstAllowedNode;
|
|
74
74
|
}
|
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
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";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[Superscript.pluginName]: Superscript;
|
|
9
|
+
[Subscript.pluginName]: Subscript;
|
|
10
|
+
[Bold.pluginName]: Bold;
|
|
11
|
+
[Code.pluginName]: Code;
|
|
12
|
+
[Code.pluginName]: Code;
|
|
13
|
+
[Code.pluginName]: Code;
|
|
14
|
+
[BoldUI.pluginName]: BoldUI;
|
|
15
|
+
[CodeEditing.pluginName]: CodeEditing;
|
|
16
|
+
[CodeUI.pluginName]: CodeUI;
|
|
17
|
+
[Italic.pluginName]: Italic;
|
|
18
|
+
[ItalicEditing.pluginName]: ItalicEditing;
|
|
19
|
+
[ItalicUI.pluginName]: ItalicUI;
|
|
20
|
+
[Strikethrough.pluginName]: Strikethrough;
|
|
21
|
+
[StrikethroughEditing.pluginName]: StrikethroughEditing;
|
|
22
|
+
[StrikethroughUI.pluginName]: StrikethroughUI;
|
|
23
|
+
[SubscriptEditing.pluginName]: SubscriptEditing;
|
|
24
|
+
[SubscriptUI.pluginName]: SubscriptUI;
|
|
25
|
+
[SuperscriptEditing.pluginName]: SuperscriptEditing;
|
|
26
|
+
[SuperscriptUI.pluginName]: SuperscriptUI;
|
|
27
|
+
[Underline.pluginName]: Underline;
|
|
28
|
+
[UnderlineEditing.pluginName]: UnderlineEditing;
|
|
29
|
+
[UnderlineUI.pluginName]: UnderlineUI;
|
|
30
|
+
}
|
|
31
|
+
interface CommandsMap {
|
|
32
|
+
bold: AttributeCommand;
|
|
33
|
+
code: AttributeCommand;
|
|
34
|
+
italic: AttributeCommand;
|
|
35
|
+
strikethrough: AttributeCommand;
|
|
36
|
+
subscript: AttributeCommand;
|
|
37
|
+
superscript: AttributeCommand;
|
|
38
|
+
underline: AttributeCommand;
|
|
39
|
+
}
|
|
40
40
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module basic-styles/bold/boldediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* The bold editing feature.
|
|
11
|
+
*
|
|
12
|
+
* It registers the `'bold'` command and introduces the `bold` attribute in the model which renders to the view
|
|
13
|
+
* as a `<strong>` element.
|
|
14
|
+
*/
|
|
15
15
|
export declare class BoldEditing extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "BoldEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static override get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
init(): void;
|
|
28
28
|
}
|
package/dist/bold/boldui.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module basic-styles/bold/boldui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The bold UI feature. It introduces the Bold button.
|
|
11
|
+
*/
|
|
12
12
|
export declare class BoldUI extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "BoldUI";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static override get isOfficialPlugin(): true;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
init(): void;
|
|
25
25
|
}
|
package/dist/bold.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { BoldEditing } from
|
|
10
|
-
import { BoldUI } from
|
|
6
|
+
* @module basic-styles/bold
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { BoldEditing } from "./bold/boldediting.js";
|
|
10
|
+
import { BoldUI } from "./bold/boldui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
* The bold feature.
|
|
13
|
+
*
|
|
14
|
+
* For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
|
|
15
|
+
* and the {@glink api/basic-styles package page}.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin which loads the {@link module:basic-styles/bold/boldediting~BoldEditing bold editing feature}
|
|
18
|
+
* and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
|
|
19
|
+
*/
|
|
20
20
|
export declare class Bold extends Plugin {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): PluginDependenciesOf<[BoldEditing, BoldUI]>;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get pluginName(): "Bold";
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isOfficialPlugin(): true;
|
|
33
33
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { TwoStepCaretMovement } from
|
|
6
|
+
* @module basic-styles/code/codeediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { TwoStepCaretMovement } from "@ckeditor/ckeditor5-typing";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
* The code editing feature.
|
|
12
|
+
*
|
|
13
|
+
* It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
|
|
14
|
+
* as a `<code>` element.
|
|
15
|
+
*/
|
|
16
16
|
export declare class CodeEditing extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "CodeEditing";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get requires(): PluginDependenciesOf<[TwoStepCaretMovement]>;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
init(): void;
|
|
33
33
|
}
|
package/dist/code/codeui.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import
|
|
6
|
+
* @module basic-styles/code/codeui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import "../../theme/code.css";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The code UI feature. It introduces the Code button.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CodeUI extends Plugin {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "CodeUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
init(): void;
|
|
26
26
|
}
|
package/dist/code.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { CodeEditing } from
|
|
10
|
-
import { CodeUI } from
|
|
11
|
-
import
|
|
6
|
+
* @module basic-styles/code
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { CodeEditing } from "./code/codeediting.js";
|
|
10
|
+
import { CodeUI } from "./code/codeui.js";
|
|
11
|
+
import "../theme/code.css";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
* The code feature.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
|
|
16
|
+
* and the {@glink api/basic-styles package page}.
|
|
17
|
+
*
|
|
18
|
+
* This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
|
|
19
|
+
* and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
|
|
20
|
+
*/
|
|
21
21
|
export declare class Code extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[CodeEditing, CodeUI]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "Code";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isOfficialPlugin(): true;
|
|
34
34
|
}
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/code.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,EAAA,CAAA,OAAA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;AAC7B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG;AACpB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;AAChB;;ADOA,CAAA,EAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,CAAA,EAAA,CAAA,aAAA,CAAA;ACJA,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;AAC7B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n",".ck-content code {\n background-color: #c7c7c74d;\n border-radius: 2px;\n padding: .15em;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n background-color: #c7c7c780;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
|
1
|
+
{"version":3,"sources":["../theme/code.css","index.css"],"names":[],"mappings":";;;;AAKA,CAAA,EAAA,CAAA,OAAA,CAAA,IAAA,CAAA;ACJA,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;AAC7B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG;AACpB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;AAChB;;ADOA,CAAA,EAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,CAAA,EAAA,CAAA,aAAA,CAAA;ACJA,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;AAC7B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n",".ck-content code {\n background-color: #c7c7c74d;\n border-radius: 2px;\n padding: .15em;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n background-color: #c7c7c780;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { Bold } from
|
|
9
|
-
export { BoldEditing } from
|
|
10
|
-
export { BoldUI } from
|
|
11
|
-
export { Code } from
|
|
12
|
-
export { CodeEditing } from
|
|
13
|
-
export { CodeUI } from
|
|
14
|
-
export { Italic } from
|
|
15
|
-
export { ItalicEditing } from
|
|
16
|
-
export { ItalicUI } from
|
|
17
|
-
export { Strikethrough } from
|
|
18
|
-
export { StrikethroughEditing } from
|
|
19
|
-
export { StrikethroughUI } from
|
|
20
|
-
export { Subscript } from
|
|
21
|
-
export { SubscriptEditing } from
|
|
22
|
-
export { SubscriptUI } from
|
|
23
|
-
export { Superscript } from
|
|
24
|
-
export { SuperscriptEditing } from
|
|
25
|
-
export { SuperscriptUI } from
|
|
26
|
-
export { Underline } from
|
|
27
|
-
export { UnderlineEditing } from
|
|
28
|
-
export { UnderlineUI } from
|
|
29
|
-
export { AttributeCommand } from
|
|
30
|
-
export { getButtonCreator as _getBasicStylesButtonCreator } from
|
|
31
|
-
import
|
|
6
|
+
* @module basic-styles
|
|
7
|
+
*/
|
|
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";
|
|
31
|
+
import "./augmentation.js";
|