@ckeditor/ckeditor5-core 31.0.0 → 31.1.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/lang/translations/da.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/uz.po +41 -0
- package/lang/translations/zh.po +1 -1
- package/package.json +17 -17
- package/src/command.js +2 -2
- package/src/editor/editor.js +4 -1
package/lang/translations/da.po
CHANGED
|
@@ -26,7 +26,7 @@ msgstr "Fjern farve"
|
|
|
26
26
|
|
|
27
27
|
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
28
28
|
msgid "Restore default"
|
|
29
|
-
msgstr ""
|
|
29
|
+
msgstr "Nulstil"
|
|
30
30
|
|
|
31
31
|
msgctxt "Label for the Save button."
|
|
32
32
|
msgid "Save"
|
|
@@ -26,7 +26,7 @@ msgstr "Remover cor"
|
|
|
26
26
|
|
|
27
27
|
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
28
28
|
msgid "Restore default"
|
|
29
|
-
msgstr ""
|
|
29
|
+
msgstr "Restaurar padrão"
|
|
30
30
|
|
|
31
31
|
msgctxt "Label for the Save button."
|
|
32
32
|
msgid "Save"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Uzbek (https://www.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
|
+
"Language: uz\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "Label for the Cancel button."
|
|
20
|
+
msgid "Cancel"
|
|
21
|
+
msgstr "Bekor qilish"
|
|
22
|
+
|
|
23
|
+
msgctxt "The label used by a button next to the color palette in the color picker that removes the color (resets it to an empty value, example usages in font color or table properties)."
|
|
24
|
+
msgid "Remove color"
|
|
25
|
+
msgstr "Rangni olib tashlash"
|
|
26
|
+
|
|
27
|
+
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
28
|
+
msgid "Restore default"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "Label for the Save button."
|
|
32
|
+
msgid "Save"
|
|
33
|
+
msgstr "Saqlash"
|
|
34
|
+
|
|
35
|
+
msgctxt "Label of a toolbar button which reveals more toolbar items."
|
|
36
|
+
msgid "Show more items"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
msgctxt "Label for an ‘X of Y’ status of a typical next/previous navigation. For instance, ‘Page 5 of 20’ or 'Search result 5 of 20'."
|
|
40
|
+
msgid "%0 of %1"
|
|
41
|
+
msgstr ""
|
package/lang/translations/zh.po
CHANGED
|
@@ -26,7 +26,7 @@ msgstr "移除顏色"
|
|
|
26
26
|
|
|
27
27
|
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
28
28
|
msgid "Restore default"
|
|
29
|
-
msgstr ""
|
|
29
|
+
msgstr "重設至預設值"
|
|
30
30
|
|
|
31
31
|
msgctxt "Label for the Save button."
|
|
32
32
|
msgid "Save"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-core",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.1.0",
|
|
4
4
|
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-engine": "^31.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "^31.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "^31.
|
|
26
|
+
"@ckeditor/ckeditor5-engine": "^31.1.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "^31.1.0",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "^31.1.0",
|
|
29
29
|
"lodash-es": "^4.17.15"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ckeditor/ckeditor5-autoformat": "^31.
|
|
33
|
-
"@ckeditor/ckeditor5-basic-styles": "^31.
|
|
34
|
-
"@ckeditor/ckeditor5-block-quote": "^31.
|
|
35
|
-
"@ckeditor/ckeditor5-editor-classic": "^31.
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^31.
|
|
37
|
-
"@ckeditor/ckeditor5-heading": "^31.
|
|
38
|
-
"@ckeditor/ckeditor5-image": "^31.
|
|
39
|
-
"@ckeditor/ckeditor5-indent": "^31.
|
|
40
|
-
"@ckeditor/ckeditor5-link": "^31.
|
|
41
|
-
"@ckeditor/ckeditor5-list": "^31.
|
|
42
|
-
"@ckeditor/ckeditor5-media-embed": "^31.
|
|
43
|
-
"@ckeditor/ckeditor5-paragraph": "^31.
|
|
44
|
-
"@ckeditor/ckeditor5-table": "^31.
|
|
32
|
+
"@ckeditor/ckeditor5-autoformat": "^31.1.0",
|
|
33
|
+
"@ckeditor/ckeditor5-basic-styles": "^31.1.0",
|
|
34
|
+
"@ckeditor/ckeditor5-block-quote": "^31.1.0",
|
|
35
|
+
"@ckeditor/ckeditor5-editor-classic": "^31.1.0",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^31.1.0",
|
|
37
|
+
"@ckeditor/ckeditor5-heading": "^31.1.0",
|
|
38
|
+
"@ckeditor/ckeditor5-image": "^31.1.0",
|
|
39
|
+
"@ckeditor/ckeditor5-indent": "^31.1.0",
|
|
40
|
+
"@ckeditor/ckeditor5-link": "^31.1.0",
|
|
41
|
+
"@ckeditor/ckeditor5-list": "^31.1.0",
|
|
42
|
+
"@ckeditor/ckeditor5-media-embed": "^31.1.0",
|
|
43
|
+
"@ckeditor/ckeditor5-paragraph": "^31.1.0",
|
|
44
|
+
"@ckeditor/ckeditor5-table": "^31.1.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=12.0.0",
|
package/src/command.js
CHANGED
|
@@ -101,10 +101,10 @@ export default class Command {
|
|
|
101
101
|
* A flag indicating whether a command execution changes the editor data or not.
|
|
102
102
|
*
|
|
103
103
|
* Commands with `affectsData` set to `false` will not be automatically disabled in
|
|
104
|
-
* {@link module:core/editor/editor~Editor#isReadOnly read-only mode} and
|
|
104
|
+
* the {@link module:core/editor/editor~Editor#isReadOnly read-only mode} and
|
|
105
105
|
* {@glink features/read-only#related-features other editor modes} with restricted user write permissions.
|
|
106
106
|
*
|
|
107
|
-
* **Note:** You do not have to set it for your every command. It
|
|
107
|
+
* **Note:** You do not have to set it for your every command. It is `true` by default.
|
|
108
108
|
*
|
|
109
109
|
* @readonly
|
|
110
110
|
* @default true
|
package/src/editor/editor.js
CHANGED
|
@@ -52,6 +52,9 @@ export default class Editor {
|
|
|
52
52
|
* @param {Object} [config={}] The editor configuration.
|
|
53
53
|
*/
|
|
54
54
|
constructor( config = {} ) {
|
|
55
|
+
// Prefer the language passed as the argument to the constructor instead of the constructor's `defaultConfig`, if both are set.
|
|
56
|
+
const language = config.language || ( this.constructor.defaultConfig && this.constructor.defaultConfig.language );
|
|
57
|
+
|
|
55
58
|
/**
|
|
56
59
|
* The editor context.
|
|
57
60
|
* When it is not provided through the configuration, the editor creates it.
|
|
@@ -59,7 +62,7 @@ export default class Editor {
|
|
|
59
62
|
* @protected
|
|
60
63
|
* @type {module:core/context~Context}
|
|
61
64
|
*/
|
|
62
|
-
this._context = config.context || new Context( { language
|
|
65
|
+
this._context = config.context || new Context( { language } );
|
|
63
66
|
this._context._addEditor( this, !config.context );
|
|
64
67
|
|
|
65
68
|
// Clone the plugins to make sure that the plugin array will not be shared
|