@ckeditor/ckeditor5-language 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.
- package/dist/augmentation.d.ts +45 -45
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +0 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +395 -394
- package/dist/index.js.map +1 -1
- package/dist/textpartlanguage.d.ts +34 -34
- package/dist/textpartlanguagecommand.d.ts +65 -65
- package/dist/textpartlanguageconfig.d.ts +20 -20
- package/dist/textpartlanguageediting.d.ts +28 -28
- package/dist/textpartlanguageui.d.ts +26 -26
- package/dist/utils.d.ts +35 -35
- package/package.json +5 -5
- package/dist/index.css.map +0 -1
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { TextPartLanguageOption, TextPartLanguage, TextPartLanguageEditing, TextPartLanguageUI, TextPartLanguageCommand } 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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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 { TextPartLanguageOption, TextPartLanguage, TextPartLanguageEditing, TextPartLanguageUI, TextPartLanguageCommand } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface LanguageConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The available {@link module:language/textpartlanguage~TextPartLanguage}
|
|
10
|
+
* options that allow setting the language of parts of the content.
|
|
11
|
+
*
|
|
12
|
+
* This configuration option is available only with the {@glink api/language text part language feature} enabled.
|
|
13
|
+
*
|
|
14
|
+
* Refer to the [WCAG 3.1.2 Language of Parts](https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html) specification
|
|
15
|
+
* to learn more.
|
|
16
|
+
*
|
|
17
|
+
* To change the editor's UI language, refer to the {@glink getting-started/setup/ui-language Setting the UI language} guide.
|
|
18
|
+
*
|
|
19
|
+
* The default value is:
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* const config = [
|
|
23
|
+
* { title: 'Arabic', languageCode: 'ar' },
|
|
24
|
+
* { title: 'French', languageCode: 'fr' },
|
|
25
|
+
* { title: 'Spanish', languageCode: 'es' }
|
|
26
|
+
* ];
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* The `title` property will be used by the text part language dropdown to render available options.
|
|
30
|
+
*
|
|
31
|
+
* The `languageCode` property is used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
|
|
32
|
+
*
|
|
33
|
+
* You can also specify the optional `textDirection` property indicating the reading direction of the language.
|
|
34
|
+
* Correct values are `ltr` and `rtl`. When the `textDirection` property is missing, the text part language feature will
|
|
35
|
+
* specify the text direction by itself.
|
|
36
|
+
*/
|
|
37
|
+
textPartLanguage?: Array<TextPartLanguageOption>;
|
|
38
|
+
}
|
|
39
|
+
interface PluginsMap {
|
|
40
|
+
[TextPartLanguage.pluginName]: TextPartLanguage;
|
|
41
|
+
[TextPartLanguageEditing.pluginName]: TextPartLanguageEditing;
|
|
42
|
+
[TextPartLanguageUI.pluginName]: TextPartLanguageUI;
|
|
43
|
+
}
|
|
44
|
+
interface CommandsMap {
|
|
45
|
+
textPartLanguage: TextPartLanguageCommand;
|
|
46
|
+
}
|
|
47
47
|
}
|
package/dist/index-content.css
CHANGED
package/dist/index-editor.css
CHANGED
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 { TextPartLanguage } from
|
|
9
|
-
export { TextPartLanguageEditing } from
|
|
10
|
-
export { TextPartLanguageUI } from
|
|
11
|
-
export { TextPartLanguageCommand } from
|
|
12
|
-
export type { TextPartLanguageOption } from
|
|
13
|
-
export { stringifyLanguageAttribute as _stringifyLanguageAttribute, parseLanguageAttribute as _parseLanguageAttribute } from
|
|
14
|
-
import
|
|
6
|
+
* @module language
|
|
7
|
+
*/
|
|
8
|
+
export { TextPartLanguage } from "./textpartlanguage.js";
|
|
9
|
+
export { TextPartLanguageEditing } from "./textpartlanguageediting.js";
|
|
10
|
+
export { TextPartLanguageUI } from "./textpartlanguageui.js";
|
|
11
|
+
export { TextPartLanguageCommand } from "./textpartlanguagecommand.js";
|
|
12
|
+
export type { TextPartLanguageOption } from "./textpartlanguageconfig.js";
|
|
13
|
+
export { stringifyLanguageAttribute as _stringifyLanguageAttribute, parseLanguageAttribute as _parseLanguageAttribute } from "./utils.js";
|
|
14
|
+
import "./augmentation.js";
|