@ckeditor/ckeditor5-font 48.2.0 → 48.3.0-alpha.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.
@@ -1,25 +1,25 @@
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/fontfamily/fontfamilycommand
7
- */
8
- import type { Editor } from '@ckeditor/ckeditor5-core';
9
- import { FontCommand } from '../fontcommand.js';
6
+ * @module font/fontfamily/fontfamilycommand
7
+ */
8
+ import type { Editor } from "@ckeditor/ckeditor5-core";
9
+ import { FontCommand } from "../fontcommand.js";
10
10
  /**
11
- * The font family command. It is used by {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing}
12
- * to apply the font family.
13
- *
14
- * ```ts
15
- * editor.execute( 'fontFamily', { value: 'Arial' } );
16
- * ```
17
- *
18
- * **Note**: Executing the command without the value removes the attribute from the model.
19
- */
11
+ * The font family command. It is used by {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing}
12
+ * to apply the font family.
13
+ *
14
+ * ```ts
15
+ * editor.execute( 'fontFamily', { value: 'Arial' } );
16
+ * ```
17
+ *
18
+ * **Note**: Executing the command without the value removes the attribute from the model.
19
+ */
20
20
  export declare class FontFamilyCommand extends FontCommand {
21
- /**
22
- * @inheritDoc
23
- */
24
- constructor(editor: Editor);
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(editor: Editor);
25
25
  }
@@ -1,43 +1,43 @@
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/fontfamily/fontfamilyediting
7
- */
8
- import { type Editor, Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module font/fontfamily/fontfamilyediting
7
+ */
8
+ import { type Editor, Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The font family editing feature.
11
- *
12
- * It introduces the {@link module:font/fontfamily/fontfamilycommand~FontFamilyCommand command} and
13
- * the `fontFamily` attribute in the {@link module:engine/model/model~Model model} which renders
14
- * in the {@link module:engine/view/view view} as an inline `<span>` element (`<span style="font-family: Arial">`),
15
- * depending on the {@link module:font/fontconfig~FontFamilyConfig configuration}.
16
- */
10
+ * The font family editing feature.
11
+ *
12
+ * It introduces the {@link module:font/fontfamily/fontfamilycommand~FontFamilyCommand command} and
13
+ * the `fontFamily` attribute in the {@link module:engine/model/model~Model model} which renders
14
+ * in the {@link module:engine/view/view view} as an inline `<span>` element (`<span style="font-family: Arial">`),
15
+ * depending on the {@link module:font/fontconfig~FontFamilyConfig configuration}.
16
+ */
17
17
  export declare class FontFamilyEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "FontFamilyEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get isOfficialPlugin(): true;
26
- /**
27
- * @inheritDoc
28
- */
29
- constructor(editor: Editor);
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- /**
35
- * These converters enable keeping any value found as `style="font-family: *"` as a value of an attribute on a text even
36
- * if it is not defined in the plugin configuration.
37
- */
38
- private _prepareAnyValueConverters;
39
- /**
40
- * Adds support for legacy `<font face="..">` formatting.
41
- */
42
- private _prepareCompatibilityConverter;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "FontFamilyEditing";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static override get isOfficialPlugin(): true;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ constructor(editor: Editor);
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ /**
35
+ * These converters enable keeping any value found as `style="font-family: *"` as a value of an attribute on a text even
36
+ * if it is not defined in the plugin configuration.
37
+ */
38
+ private _prepareAnyValueConverters;
39
+ /**
40
+ * Adds support for legacy `<font face="..">` formatting.
41
+ */
42
+ private _prepareCompatibilityConverter;
43
43
  }
@@ -1,34 +1,34 @@
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/fontfamily/fontfamilyui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module font/fontfamily/fontfamilyui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The font family UI plugin. It introduces the `'fontFamily'` dropdown.
11
- */
10
+ * The font family UI plugin. It introduces the `'fontFamily'` dropdown.
11
+ */
12
12
  export declare class FontFamilyUI extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- static get pluginName(): "FontFamilyUI";
17
- /**
18
- * @inheritDoc
19
- */
20
- static get isOfficialPlugin(): true;
21
- /**
22
- * @inheritDoc
23
- */
24
- init(): void;
25
- /**
26
- * Returns options as defined in `config.fontFamily.options` but processed to account for
27
- * editor localization, i.e. to display {@link module:font/fontconfig~FontFamilyOption}
28
- * in the correct language.
29
- *
30
- * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
31
- * when the user configuration is defined because the editor does not exist yet.
32
- */
33
- private _getLocalizedOptions;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "FontFamilyUI";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static override get isOfficialPlugin(): true;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ init(): void;
25
+ /**
26
+ * Returns options as defined in `config.fontFamily.options` but processed to account for
27
+ * editor localization, i.e. to display {@link module:font/fontconfig~FontFamilyOption}
28
+ * in the correct language.
29
+ *
30
+ * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
31
+ * when the user configuration is defined because the editor does not exist yet.
32
+ */
33
+ private _getLocalizedOptions;
34
34
  }
@@ -1,22 +1,22 @@
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/fontfamily/utils
7
- */
8
- import type { FontFamilyOption } from '../fontconfig.js';
6
+ * @module font/fontfamily/utils
7
+ */
8
+ import type { FontFamilyOption } from "../fontconfig.js";
9
9
  /**
10
- * Normalizes the {@link module:font/fontconfig~FontFamilyConfig#options configuration options}
11
- * to the {@link module:font/fontconfig~FontFamilyOption} format.
12
- *
13
- * @param configuredOptions An array of options taken from the configuration.
14
- * @internal
15
- */
10
+ * Normalizes the {@link module:font/fontconfig~FontFamilyConfig#options configuration options}
11
+ * to the {@link module:font/fontconfig~FontFamilyOption} format.
12
+ *
13
+ * @param configuredOptions An array of options taken from the configuration.
14
+ * @internal
15
+ */
16
16
  export declare function normalizeOptions(configuredOptions: Array<string | FontFamilyOption>): Array<FontFamilyOption>;
17
17
  /**
18
- * Normalizes the CSS `font-family` property value to an array of unquoted and trimmed font faces.
19
- *
20
- * @internal
21
- */
18
+ * Normalizes the CSS `font-family` property value to an array of unquoted and trimmed font faces.
19
+ *
20
+ * @internal
21
+ */
22
22
  export declare function normalizeFontFamilies(fontDefinition: string): Array<string>;
@@ -1,33 +1,33 @@
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/fontfamily
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
10
- import { FontFamilyUI } from './fontfamily/fontfamilyui.js';
6
+ * @module font/fontfamily
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { FontFamilyEditing } from "./fontfamily/fontfamilyediting.js";
10
+ import { FontFamilyUI } from "./fontfamily/fontfamilyui.js";
11
11
  /**
12
- * The font family plugin.
13
- *
14
- * For a detailed overview, check the {@glink features/font font feature} documentatiom
15
- * and the {@glink api/font package page}.
16
- *
17
- * This is a "glue" plugin which loads the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} and
18
- * {@link module:font/fontfamily/fontfamilyui~FontFamilyUI} features in the editor.
19
- */
12
+ * The font family plugin.
13
+ *
14
+ * For a detailed overview, check the {@glink features/font font feature} documentatiom
15
+ * and the {@glink api/font package page}.
16
+ *
17
+ * This is a "glue" plugin which loads the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} and
18
+ * {@link module:font/fontfamily/fontfamilyui~FontFamilyUI} features in the editor.
19
+ */
20
20
  export declare class FontFamily extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof FontFamilyEditing, typeof FontFamilyUI];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "FontFamily";
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isOfficialPlugin(): true;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): PluginDependenciesOf<[FontFamilyEditing, FontFamilyUI]>;
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "FontFamily";
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static override get isOfficialPlugin(): true;
33
33
  }
@@ -1,25 +1,25 @@
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/fontsize/fontsizecommand
7
- */
8
- import type { Editor } from '@ckeditor/ckeditor5-core';
9
- import { FontCommand } from '../fontcommand.js';
6
+ * @module font/fontsize/fontsizecommand
7
+ */
8
+ import type { Editor } from "@ckeditor/ckeditor5-core";
9
+ import { FontCommand } from "../fontcommand.js";
10
10
  /**
11
- * The font size command. It is used by {@link module:font/fontsize/fontsizeediting~FontSizeEditing}
12
- * to apply the font size.
13
- *
14
- * ```ts
15
- * editor.execute( 'fontSize', { value: 'small' } );
16
- * ```
17
- *
18
- * **Note**: Executing the command without the value removes the attribute from the model.
19
- */
11
+ * The font size command. It is used by {@link module:font/fontsize/fontsizeediting~FontSizeEditing}
12
+ * to apply the font size.
13
+ *
14
+ * ```ts
15
+ * editor.execute( 'fontSize', { value: 'small' } );
16
+ * ```
17
+ *
18
+ * **Note**: Executing the command without the value removes the attribute from the model.
19
+ */
20
20
  export declare class FontSizeCommand extends FontCommand {
21
- /**
22
- * @inheritDoc
23
- */
24
- constructor(editor: Editor);
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(editor: Editor);
25
25
  }
@@ -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/fontsize/fontsizeediting
7
- */
8
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
6
+ * @module font/fontsize/fontsizeediting
7
+ */
8
+ import { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The font size editing feature.
11
- *
12
- * It introduces the {@link module:font/fontsize/fontsizecommand~FontSizeCommand command} and the `fontSize`
13
- * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
14
- * as a `<span>` element with either:
15
- * * a style attribute (`<span style="font-size:12px">...</span>`),
16
- * * or a class attribute (`<span class="text-small">...</span>`)
17
- *
18
- * depending on the {@link module:font/fontconfig~FontSizeConfig configuration}.
19
- */
10
+ * The font size editing feature.
11
+ *
12
+ * It introduces the {@link module:font/fontsize/fontsizecommand~FontSizeCommand command} and the `fontSize`
13
+ * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
14
+ * as a `<span>` element with either:
15
+ * * a style attribute (`<span style="font-size:12px">...</span>`),
16
+ * * or a class attribute (`<span class="text-small">...</span>`)
17
+ *
18
+ * depending on the {@link module:font/fontconfig~FontSizeConfig configuration}.
19
+ */
20
20
  export declare class FontSizeEditing extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "FontSizeEditing";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- constructor(editor: Editor);
33
- /**
34
- * @inheritDoc
35
- */
36
- init(): void;
37
- /**
38
- * These converters enable keeping any value found as `style="font-size: *"` as a value of an attribute on a text even
39
- * if it is not defined in the plugin configuration.
40
- *
41
- * @param definition Converter definition out of input data.
42
- */
43
- private _prepareAnyValueConverters;
44
- /**
45
- * Adds support for legacy `<font size="..">` formatting.
46
- */
47
- private _prepareCompatibilityConverter;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "FontSizeEditing";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static override get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ constructor(editor: Editor);
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ init(): void;
37
+ /**
38
+ * These converters enable keeping any value found as `style="font-size: *"` as a value of an attribute on a text even
39
+ * if it is not defined in the plugin configuration.
40
+ *
41
+ * @param definition Converter definition out of input data.
42
+ */
43
+ private _prepareAnyValueConverters;
44
+ /**
45
+ * Adds support for legacy `<font size="..">` formatting.
46
+ */
47
+ private _prepareCompatibilityConverter;
48
48
  }
@@ -1,35 +1,35 @@
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/fontsize/fontsizeui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import '../../theme/fontsize.css';
6
+ * @module font/fontsize/fontsizeui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
+ import "../../theme/fontsize.css";
10
10
  /**
11
- * The font size UI plugin. It introduces the `'fontSize'` dropdown.
12
- */
11
+ * The font size UI plugin. It introduces the `'fontSize'` dropdown.
12
+ */
13
13
  export declare class FontSizeUI extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "FontSizeUI";
18
- /**
19
- * @inheritDoc
20
- */
21
- static get isOfficialPlugin(): true;
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- /**
27
- * Returns options as defined in `config.fontSize.options` but processed to account for
28
- * editor localization, i.e. to display {@link module:font/fontconfig~FontSizeOption}
29
- * in the correct language.
30
- *
31
- * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
32
- * when the user configuration is defined because the editor does not exist yet.
33
- */
34
- private _getLocalizedOptions;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "FontSizeUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static override get isOfficialPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ /**
27
+ * Returns options as defined in `config.fontSize.options` but processed to account for
28
+ * editor localization, i.e. to display {@link module:font/fontconfig~FontSizeOption}
29
+ * in the correct language.
30
+ *
31
+ * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
32
+ * when the user configuration is defined because the editor does not exist yet.
33
+ */
34
+ private _getLocalizedOptions;
35
35
  }
@@ -1,13 +1,13 @@
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
- */
5
- import { type FontSizeOption } from '../fontconfig.js';
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 FontSizeOption } from "../fontconfig.js";
6
6
  /**
7
- * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
8
- * to the {@link module:font/fontconfig~FontSizeOption} format.
9
- *
10
- * @param configuredOptions An array of options taken from the configuration.
11
- * @internal
12
- */
7
+ * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
8
+ * to the {@link module:font/fontconfig~FontSizeOption} format.
9
+ *
10
+ * @param configuredOptions An array of options taken from the configuration.
11
+ * @internal
12
+ */
13
13
  export declare function normalizeOptions(configuredOptions: Array<string | number | FontSizeOption>): Array<FontSizeOption>;
@@ -1,41 +1,41 @@
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/fontsize
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { FontSizeEditing } from './fontsize/fontsizeediting.js';
10
- import { FontSizeUI } from './fontsize/fontsizeui.js';
11
- import type { FontSizeOption } from './fontconfig.js';
6
+ * @module font/fontsize
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { FontSizeEditing } from "./fontsize/fontsizeediting.js";
10
+ import { FontSizeUI } from "./fontsize/fontsizeui.js";
11
+ import type { FontSizeOption } from "./fontconfig.js";
12
12
  /**
13
- * The font size plugin.
14
- *
15
- * For a detailed overview, check the {@glink features/font font feature} documentation
16
- * and the {@glink api/font package page}.
17
- *
18
- * This is a "glue" plugin which loads the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} and
19
- * {@link module:font/fontsize/fontsizeui~FontSizeUI} features in the editor.
20
- */
13
+ * The font size plugin.
14
+ *
15
+ * For a detailed overview, check the {@glink features/font font feature} documentation
16
+ * and the {@glink api/font package page}.
17
+ *
18
+ * This is a "glue" plugin which loads the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} and
19
+ * {@link module:font/fontsize/fontsizeui~FontSizeUI} features in the editor.
20
+ */
21
21
  export declare class FontSize extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof FontSizeEditing, typeof FontSizeUI];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "FontSize";
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isOfficialPlugin(): true;
34
- /**
35
- * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
36
- * to the {@link module:font/fontconfig~FontSizeOption} format.
37
- *
38
- * @param options An array of options taken from the configuration.
39
- */
40
- normalizeSizeOptions(options: Array<string | number | FontSizeOption>): Array<FontSizeOption>;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): PluginDependenciesOf<[FontSizeEditing, FontSizeUI]>;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "FontSize";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isOfficialPlugin(): true;
34
+ /**
35
+ * Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
36
+ * to the {@link module:font/fontconfig~FontSizeOption} format.
37
+ *
38
+ * @param options An array of options taken from the configuration.
39
+ */
40
+ normalizeSizeOptions(options: Array<string | number | FontSizeOption>): Array<FontSizeOption>;
41
41
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/fontsize.css","index.css"],"names":[],"mappings":";;;;AAOA,CAAA,IAAA,CAAA;ACNA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG;AACnC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;AACrC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;AACnC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG;AACpC;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,KAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;AAC9C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,GAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC5C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C;;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/* The values should be synchronized with the \"FONT_SIZE_PRESET_UNITS\" object in the \"/src/fontsize/utils.js\" file. */\n\n:root {\n\t--ck-content-font-size-tiny: 0.7em;\n\t--ck-content-font-size-small: 0.85em;\n\t--ck-content-font-size-big: 1.4em;\n\t--ck-content-font-size-huge: 1.8em;\n}\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: var(--ck-content-font-size-tiny);\n\t}\n\n\t& .text-small {\n\t\tfont-size: var(--ck-content-font-size-small);\n\t}\n\n\t& .text-big {\n\t\tfont-size: var(--ck-content-font-size-big);\n\t}\n\n\t& .text-huge {\n\t\tfont-size: var(--ck-content-font-size-huge);\n\t}\n}\n",":root {\n --ck-content-font-size-tiny: .7em;\n --ck-content-font-size-small: .85em;\n --ck-content-font-size-big: 1.4em;\n --ck-content-font-size-huge: 1.8em;\n}\n\n.ck-content .text-tiny {\n font-size: var(--ck-content-font-size-tiny);\n}\n\n.ck-content .text-small {\n font-size: var(--ck-content-font-size-small);\n}\n\n.ck-content .text-big {\n font-size: var(--ck-content-font-size-big);\n}\n\n.ck-content .text-huge {\n font-size: var(--ck-content-font-size-huge);\n}\n\n/*# sourceMappingURL=index.css.map */"]}
1
+ {"version":3,"sources":["../theme/fontsize.css","index.css"],"names":[],"mappings":";;;;AAOA,CAAA,IAAA,CAAA;ACNA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG;AACnC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;AACrC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;AACnC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG;AACpC;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,KAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;AAC9C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,GAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC5C;;ADYC,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAA;ACTD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C;;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/* The values should be synchronized with the \"FONT_SIZE_PRESET_UNITS\" object in the \"/src/fontsize/utils.js\" file. */\n\n:root {\n\t--ck-content-font-size-tiny: 0.7em;\n\t--ck-content-font-size-small: 0.85em;\n\t--ck-content-font-size-big: 1.4em;\n\t--ck-content-font-size-huge: 1.8em;\n}\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: var(--ck-content-font-size-tiny);\n\t}\n\n\t& .text-small {\n\t\tfont-size: var(--ck-content-font-size-small);\n\t}\n\n\t& .text-big {\n\t\tfont-size: var(--ck-content-font-size-big);\n\t}\n\n\t& .text-huge {\n\t\tfont-size: var(--ck-content-font-size-huge);\n\t}\n}\n",":root {\n --ck-content-font-size-tiny: .7em;\n --ck-content-font-size-small: .85em;\n --ck-content-font-size-big: 1.4em;\n --ck-content-font-size-huge: 1.8em;\n}\n\n.ck-content .text-tiny {\n font-size: var(--ck-content-font-size-tiny);\n}\n\n.ck-content .text-small {\n font-size: var(--ck-content-font-size-small);\n}\n\n.ck-content .text-big {\n font-size: var(--ck-content-font-size-big);\n}\n\n.ck-content .text-huge {\n font-size: var(--ck-content-font-size-huge);\n}\n\n/*# sourceMappingURL=index.css.map */"]}