@ckeditor/ckeditor5-font 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.
@@ -1,48 +1,48 @@
1
1
  /**
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
- */
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
- * @module font/fontcommand
7
- */
8
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
9
- import { type Batch } from '@ckeditor/ckeditor5-engine';
6
+ * @module font/fontcommand
7
+ */
8
+ import { Command, type Editor } from "@ckeditor/ckeditor5-core";
9
+ import { type Batch } from "@ckeditor/ckeditor5-engine";
10
10
  /**
11
- * The base font command.
12
- */
11
+ * The base font command.
12
+ */
13
13
  export declare abstract class FontCommand extends Command {
14
- /**
15
- * When set, it reflects the {@link #attributeKey} value of the selection.
16
- *
17
- * @observable
18
- * @readonly
19
- */
20
- value: string;
21
- /**
22
- * A model attribute on which this command operates.
23
- */
24
- readonly attributeKey: string;
25
- /**
26
- * Creates an instance of the command.
27
- *
28
- * @param editor Editor instance.
29
- * @param attributeKey The name of a model attribute on which this command operates.
30
- */
31
- constructor(editor: Editor, attributeKey: string);
32
- /**
33
- * @inheritDoc
34
- */
35
- refresh(): void;
36
- /**
37
- * Executes the command. Applies the `value` of the {@link #attributeKey} to the selection.
38
- * If no `value` is passed, it removes the attribute from the selection.
39
- *
40
- * @param options Options for the executed command.
41
- * @param options.value The value to apply.
42
- * @fires execute
43
- */
44
- execute(options?: {
45
- value?: string;
46
- batch?: Batch;
47
- }): void;
14
+ /**
15
+ * When set, it reflects the {@link #attributeKey} value of the selection.
16
+ *
17
+ * @observable
18
+ * @readonly
19
+ */
20
+ value: string;
21
+ /**
22
+ * A model attribute on which this command operates.
23
+ */
24
+ readonly attributeKey: string;
25
+ /**
26
+ * Creates an instance of the command.
27
+ *
28
+ * @param editor Editor instance.
29
+ * @param attributeKey The name of a model attribute on which this command operates.
30
+ */
31
+ constructor(editor: Editor, attributeKey: string);
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ override refresh(): void;
36
+ /**
37
+ * Executes the command. Applies the `value` of the {@link #attributeKey} to the selection.
38
+ * If no `value` is passed, it removes the attribute from the selection.
39
+ *
40
+ * @param options Options for the executed command.
41
+ * @param options.value The value to apply.
42
+ * @fires execute
43
+ */
44
+ override execute(options?: {
45
+ value?: string;
46
+ batch?: Batch;
47
+ }): void;
48
48
  }