@ckeditor/ckeditor5-core 37.1.0 → 38.0.0-rc.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/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +2 -2
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +17 -17
- package/src/command.d.ts +11 -0
- package/src/command.js +17 -10
- package/src/editor/editor.js +3 -0
- package/src/editor/editorconfig.d.ts +80 -6
package/lang/translations/af.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Afrikaans (https://
|
|
15
|
+
"Language-Team: Afrikaans (https://app.transifex.com/ckeditor/teams/11143/af/)\n"
|
|
16
16
|
"Language: af\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/ar.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Arabic (https://
|
|
15
|
+
"Language-Team: Arabic (https://app.transifex.com/ckeditor/teams/11143/ar/)\n"
|
|
16
16
|
"Language: ar\n"
|
|
17
17
|
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
|
18
18
|
|
package/lang/translations/ast.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Asturian (https://
|
|
15
|
+
"Language-Team: Asturian (https://app.transifex.com/ckeditor/teams/11143/ast/)\n"
|
|
16
16
|
"Language: ast\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/az.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Azerbaijani (https://
|
|
15
|
+
"Language-Team: Azerbaijani (https://app.transifex.com/ckeditor/teams/11143/az/)\n"
|
|
16
16
|
"Language: az\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/bg.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Bulgarian (https://
|
|
15
|
+
"Language-Team: Bulgarian (https://app.transifex.com/ckeditor/teams/11143/bg/)\n"
|
|
16
16
|
"Language: bg\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/bn.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Bengali (https://
|
|
15
|
+
"Language-Team: Bengali (https://app.transifex.com/ckeditor/teams/11143/bn/)\n"
|
|
16
16
|
"Language: bn\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/bs.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Bosnian (https://
|
|
15
|
+
"Language-Team: Bosnian (https://app.transifex.com/ckeditor/teams/11143/bs/)\n"
|
|
16
16
|
"Language: bs\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
18
|
|
package/lang/translations/ca.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Catalan (https://
|
|
15
|
+
"Language-Team: Catalan (https://app.transifex.com/ckeditor/teams/11143/ca/)\n"
|
|
16
16
|
"Language: ca\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/cs.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Czech (https://
|
|
15
|
+
"Language-Team: Czech (https://app.transifex.com/ckeditor/teams/11143/cs/)\n"
|
|
16
16
|
"Language: cs\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
|
18
18
|
|
package/lang/translations/da.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Danish (https://
|
|
15
|
+
"Language-Team: Danish (https://app.transifex.com/ckeditor/teams/11143/da/)\n"
|
|
16
16
|
"Language: da\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: German (Switzerland) (https://
|
|
15
|
+
"Language-Team: German (Switzerland) (https://app.transifex.com/ckeditor/teams/11143/de_CH/)\n"
|
|
16
16
|
"Language: de_CH\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/de.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: German (https://
|
|
15
|
+
"Language-Team: German (https://app.transifex.com/ckeditor/teams/11143/de/)\n"
|
|
16
16
|
"Language: de\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/el.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Greek (https://
|
|
15
|
+
"Language-Team: Greek (https://app.transifex.com/ckeditor/teams/11143/el/)\n"
|
|
16
16
|
"Language: el\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: English (Australia) (https://
|
|
15
|
+
"Language-Team: English (Australia) (https://app.transifex.com/ckeditor/teams/11143/en_AU/)\n"
|
|
16
16
|
"Language: en_AU\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -46,4 +46,4 @@ msgstr "Cannot upload file:"
|
|
|
46
46
|
|
|
47
47
|
msgctxt "Accessible label of the specific editing area of the editor acting as a root of the entire application."
|
|
48
48
|
msgid "Rich Text Editor. Editing area: %0"
|
|
49
|
-
msgstr ""
|
|
49
|
+
msgstr "Rich Text Editor. Editing area: %0"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: English (United Kingdom) (https://
|
|
15
|
+
"Language-Team: English (United Kingdom) (https://app.transifex.com/ckeditor/teams/11143/en_GB/)\n"
|
|
16
16
|
"Language: en_GB\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/eo.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Esperanto (https://
|
|
15
|
+
"Language-Team: Esperanto (https://app.transifex.com/ckeditor/teams/11143/eo/)\n"
|
|
16
16
|
"Language: eo\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Spanish (Colombia) (https://
|
|
15
|
+
"Language-Team: Spanish (Colombia) (https://app.transifex.com/ckeditor/teams/11143/es_CO/)\n"
|
|
16
16
|
"Language: es_CO\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/es.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Spanish (https://
|
|
15
|
+
"Language-Team: Spanish (https://app.transifex.com/ckeditor/teams/11143/es/)\n"
|
|
16
16
|
"Language: es\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/et.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Estonian (https://
|
|
15
|
+
"Language-Team: Estonian (https://app.transifex.com/ckeditor/teams/11143/et/)\n"
|
|
16
16
|
"Language: et\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/eu.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Basque (https://
|
|
15
|
+
"Language-Team: Basque (https://app.transifex.com/ckeditor/teams/11143/eu/)\n"
|
|
16
16
|
"Language: eu\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/fa.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Persian (https://
|
|
15
|
+
"Language-Team: Persian (https://app.transifex.com/ckeditor/teams/11143/fa/)\n"
|
|
16
16
|
"Language: fa\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
18
|
|
package/lang/translations/fi.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Finnish (https://
|
|
15
|
+
"Language-Team: Finnish (https://app.transifex.com/ckeditor/teams/11143/fi/)\n"
|
|
16
16
|
"Language: fi\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/fr.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: French (https://
|
|
15
|
+
"Language-Team: French (https://app.transifex.com/ckeditor/teams/11143/fr/)\n"
|
|
16
16
|
"Language: fr\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/gl.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Galician (https://
|
|
15
|
+
"Language-Team: Galician (https://app.transifex.com/ckeditor/teams/11143/gl/)\n"
|
|
16
16
|
"Language: gl\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/gu.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Gujarati (https://
|
|
15
|
+
"Language-Team: Gujarati (https://app.transifex.com/ckeditor/teams/11143/gu/)\n"
|
|
16
16
|
"Language: gu\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/he.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Hebrew (https://
|
|
15
|
+
"Language-Team: Hebrew (https://app.transifex.com/ckeditor/teams/11143/he/)\n"
|
|
16
16
|
"Language: he\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
|
|
18
18
|
|
package/lang/translations/hi.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Hindi (https://
|
|
15
|
+
"Language-Team: Hindi (https://app.transifex.com/ckeditor/teams/11143/hi/)\n"
|
|
16
16
|
"Language: hi\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/hr.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Croatian (https://
|
|
15
|
+
"Language-Team: Croatian (https://app.transifex.com/ckeditor/teams/11143/hr/)\n"
|
|
16
16
|
"Language: hr\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/hu.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Hungarian (https://
|
|
15
|
+
"Language-Team: Hungarian (https://app.transifex.com/ckeditor/teams/11143/hu/)\n"
|
|
16
16
|
"Language: hu\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/id.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Indonesian (https://
|
|
15
|
+
"Language-Team: Indonesian (https://app.transifex.com/ckeditor/teams/11143/id/)\n"
|
|
16
16
|
"Language: id\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
package/lang/translations/it.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Italian (https://
|
|
15
|
+
"Language-Team: Italian (https://app.transifex.com/ckeditor/teams/11143/it/)\n"
|
|
16
16
|
"Language: it\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/ja.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Japanese (https://
|
|
15
|
+
"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n"
|
|
16
16
|
"Language: ja\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
package/lang/translations/jv.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Javanese (https://
|
|
15
|
+
"Language-Team: Javanese (https://app.transifex.com/ckeditor/teams/11143/jv/)\n"
|
|
16
16
|
"Language: jv\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
package/lang/translations/km.po
CHANGED
package/lang/translations/kn.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Kannada (https://
|
|
15
|
+
"Language-Team: Kannada (https://app.transifex.com/ckeditor/teams/11143/kn/)\n"
|
|
16
16
|
"Language: kn\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
18
|
|
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Kurdish (https://
|
|
15
|
+
"Language-Team: Kurdish (https://app.transifex.com/ckeditor/teams/11143/ku/)\n"
|
|
16
16
|
"Language: ku\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/lt.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Lithuanian (https://
|
|
15
|
+
"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n"
|
|
16
16
|
"Language: lt\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
18
18
|
|
package/lang/translations/lv.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Latvian (https://
|
|
15
|
+
"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n"
|
|
16
16
|
"Language: lv\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
|
|
18
18
|
|
package/lang/translations/ms.po
CHANGED
package/lang/translations/nb.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Norwegian Bokmål (https://
|
|
15
|
+
"Language-Team: Norwegian Bokmål (https://app.transifex.com/ckeditor/teams/11143/nb/)\n"
|
|
16
16
|
"Language: nb\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/ne.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Nepali (Nepal) (https://
|
|
15
|
+
"Language-Team: Nepali (Nepal) (https://app.transifex.com/ckeditor/teams/11143/ne_NP/)\n"
|
|
16
16
|
"Language: ne_NP\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/nl.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Dutch (https://
|
|
15
|
+
"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n"
|
|
16
16
|
"Language: nl\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/no.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Norwegian (https://
|
|
15
|
+
"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n"
|
|
16
16
|
"Language: no\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/oc.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Occitan (post 1500) (https://
|
|
15
|
+
"Language-Team: Occitan (post 1500) (https://app.transifex.com/ckeditor/teams/11143/oc/)\n"
|
|
16
16
|
"Language: oc\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
18
|
|
package/lang/translations/pl.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Polish (https://
|
|
15
|
+
"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n"
|
|
16
16
|
"Language: pl\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Portuguese (Brazil) (https://
|
|
15
|
+
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
|
|
16
16
|
"Language: pt_BR\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/pt.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Portuguese (https://
|
|
15
|
+
"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
|
|
16
16
|
"Language: pt\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
18
|
|
package/lang/translations/ro.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Romanian (https://
|
|
15
|
+
"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
|
|
16
16
|
"Language: ro\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
|
|
18
18
|
|
package/lang/translations/ru.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Russian (https://
|
|
15
|
+
"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
|
|
16
16
|
"Language: ru\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
|
18
18
|
|
package/lang/translations/si.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Sinhala (Sri Lanka) (https://
|
|
15
|
+
"Language-Team: Sinhala (Sri Lanka) (https://app.transifex.com/ckeditor/teams/11143/si_LK/)\n"
|
|
16
16
|
"Language: si_LK\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/sk.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Slovak (https://
|
|
15
|
+
"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
|
|
16
16
|
"Language: sk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
18
18
|
|
package/lang/translations/sl.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Slovenian (https://
|
|
15
|
+
"Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n"
|
|
16
16
|
"Language: sl\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
|
|
18
18
|
|
package/lang/translations/sq.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Albanian (https://
|
|
15
|
+
"Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
|
|
16
16
|
"Language: sq\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Serbian (Latin) (https://
|
|
15
|
+
"Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
|
|
16
16
|
"Language: sr@latin\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
18
|
|
package/lang/translations/sr.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Serbian (https://
|
|
15
|
+
"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
|
|
16
16
|
"Language: sr\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
18
|
|
package/lang/translations/sv.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Swedish (https://
|
|
15
|
+
"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
16
|
"Language: sv\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Turkmen (https://
|
|
15
|
+
"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
|
|
16
16
|
"Language: tk\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/tr.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Turkish (https://
|
|
15
|
+
"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
16
|
"Language: tr\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
18
|
|
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Uyghur (https://
|
|
15
|
+
"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
|
|
16
16
|
"Language: ug\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/uk.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Ukrainian (https://
|
|
15
|
+
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
16
|
"Language: uk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
18
18
|
|
package/lang/translations/ur.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Urdu (https://
|
|
15
|
+
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
16
|
"Language: ur\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Vietnamese (https://
|
|
15
|
+
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
16
|
"Language: vi\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (China) (https://
|
|
15
|
+
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
16
|
"Language: zh_CN\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
package/lang/translations/zh.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (Taiwan) (https://
|
|
15
|
+
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
16
|
"Language: zh_TW\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "38.0.0-rc.1",
|
|
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": "^
|
|
27
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
26
|
+
"@ckeditor/ckeditor5-engine": "^38.0.0-rc.1",
|
|
27
|
+
"@ckeditor/ckeditor5-utils": "^38.0.0-rc.1",
|
|
28
28
|
"lodash-es": "^4.17.15"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@ckeditor/ckeditor5-autoformat": "^
|
|
32
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
33
|
-
"@ckeditor/ckeditor5-block-quote": "^
|
|
34
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
35
|
-
"@ckeditor/ckeditor5-essentials": "^
|
|
36
|
-
"@ckeditor/ckeditor5-heading": "^
|
|
37
|
-
"@ckeditor/ckeditor5-image": "^
|
|
38
|
-
"@ckeditor/ckeditor5-indent": "^
|
|
39
|
-
"@ckeditor/ckeditor5-link": "^
|
|
40
|
-
"@ckeditor/ckeditor5-list": "^
|
|
41
|
-
"@ckeditor/ckeditor5-media-embed": "^
|
|
42
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
43
|
-
"@ckeditor/ckeditor5-table": "^
|
|
44
|
-
"@ckeditor/ckeditor5-ui": "^
|
|
31
|
+
"@ckeditor/ckeditor5-autoformat": "^38.0.0-rc.1",
|
|
32
|
+
"@ckeditor/ckeditor5-basic-styles": "^38.0.0-rc.1",
|
|
33
|
+
"@ckeditor/ckeditor5-block-quote": "^38.0.0-rc.1",
|
|
34
|
+
"@ckeditor/ckeditor5-editor-classic": "^38.0.0-rc.1",
|
|
35
|
+
"@ckeditor/ckeditor5-essentials": "^38.0.0-rc.1",
|
|
36
|
+
"@ckeditor/ckeditor5-heading": "^38.0.0-rc.1",
|
|
37
|
+
"@ckeditor/ckeditor5-image": "^38.0.0-rc.1",
|
|
38
|
+
"@ckeditor/ckeditor5-indent": "^38.0.0-rc.1",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "^38.0.0-rc.1",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "^38.0.0-rc.1",
|
|
41
|
+
"@ckeditor/ckeditor5-media-embed": "^38.0.0-rc.1",
|
|
42
|
+
"@ckeditor/ckeditor5-paragraph": "^38.0.0-rc.1",
|
|
43
|
+
"@ckeditor/ckeditor5-table": "^38.0.0-rc.1",
|
|
44
|
+
"@ckeditor/ckeditor5-ui": "^38.0.0-rc.1",
|
|
45
45
|
"typescript": "^4.8.4",
|
|
46
46
|
"webpack": "^5.58.1",
|
|
47
47
|
"webpack-cli": "^4.9.0"
|
package/src/command.d.ts
CHANGED
|
@@ -55,6 +55,17 @@ export default class Command extends Command_base {
|
|
|
55
55
|
* @readonly
|
|
56
56
|
*/
|
|
57
57
|
isEnabled: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* A flag indicating whether a command's `isEnabled` state should be changed depending on where the document
|
|
60
|
+
* selection is placed.
|
|
61
|
+
*
|
|
62
|
+
* By default, it is set to `true`. If the document selection is placed in a
|
|
63
|
+
* {@link module:engine/model/model~Model#canEditAt non-editable} place (such as non-editable root), the command becomes disabled.
|
|
64
|
+
*
|
|
65
|
+
* The flag should be changed to `false` in a concrete command's constructor if the command should not change its `isEnabled`
|
|
66
|
+
* accordingly to the document selection.
|
|
67
|
+
*/
|
|
68
|
+
protected _isEnabledBasedOnSelection: boolean;
|
|
58
69
|
/**
|
|
59
70
|
* A flag indicating whether a command execution changes the editor data or not.
|
|
60
71
|
*
|
package/src/command.js
CHANGED
|
@@ -31,26 +31,33 @@ export default class Command extends ObservableMixin() {
|
|
|
31
31
|
this.set('value', undefined);
|
|
32
32
|
this.set('isEnabled', false);
|
|
33
33
|
this._affectsData = true;
|
|
34
|
+
this._isEnabledBasedOnSelection = true;
|
|
34
35
|
this._disableStack = new Set();
|
|
35
36
|
this.decorate('execute');
|
|
36
|
-
// By default every command is refreshed when changes are applied to the model.
|
|
37
|
+
// By default, every command is refreshed when changes are applied to the model.
|
|
37
38
|
this.listenTo(this.editor.model.document, 'change', () => {
|
|
38
39
|
this.refresh();
|
|
39
40
|
});
|
|
41
|
+
this.listenTo(editor, 'change:isReadOnly', () => {
|
|
42
|
+
this.refresh();
|
|
43
|
+
});
|
|
44
|
+
// By default, commands are disabled if the selection is in non-editable place or editor is in read-only mode.
|
|
45
|
+
this.on('set:isEnabled', evt => {
|
|
46
|
+
if (!this.affectsData) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// Checking `editor.isReadOnly` is needed for all commands that have `_isEnabledBasedOnSelection == false`.
|
|
50
|
+
// E.g. undo does not base on selection, but affects data and should be disabled when the editor is in read-only mode.
|
|
51
|
+
if (editor.isReadOnly || this._isEnabledBasedOnSelection && !editor.model.canEditAt(editor.model.document.selection)) {
|
|
52
|
+
evt.return = false;
|
|
53
|
+
evt.stop();
|
|
54
|
+
}
|
|
55
|
+
}, { priority: 'highest' });
|
|
40
56
|
this.on('execute', evt => {
|
|
41
57
|
if (!this.isEnabled) {
|
|
42
58
|
evt.stop();
|
|
43
59
|
}
|
|
44
60
|
}, { priority: 'high' });
|
|
45
|
-
// By default commands are disabled when the editor is in read-only mode.
|
|
46
|
-
this.listenTo(editor, 'change:isReadOnly', (evt, name, value) => {
|
|
47
|
-
if (value && this.affectsData) {
|
|
48
|
-
this.forceDisabled('readOnlyMode');
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.clearForceDisabled('readOnlyMode');
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
61
|
}
|
|
55
62
|
/**
|
|
56
63
|
* A flag indicating whether a command execution changes the editor data or not.
|
package/src/editor/editor.js
CHANGED
|
@@ -59,6 +59,9 @@ export default class Editor extends ObservableMixin() {
|
|
|
59
59
|
this.once('ready', () => (this.state = 'ready'), { priority: 'high' });
|
|
60
60
|
this.once('destroy', () => (this.state = 'destroyed'), { priority: 'high' });
|
|
61
61
|
this.model = new Model();
|
|
62
|
+
this.on('change:isReadOnly', () => {
|
|
63
|
+
this.model.document.isReadOnly = this.isReadOnly;
|
|
64
|
+
});
|
|
62
65
|
const stylesProcessor = new StylesProcessor();
|
|
63
66
|
this.data = new DataController(this.model, stylesProcessor);
|
|
64
67
|
this.editing = new EditingController(this.model, stylesProcessor);
|
|
@@ -454,14 +454,47 @@ export interface EditorConfig {
|
|
|
454
454
|
* (e.g. the top menu). Thanks to setting the UI viewport offset the toolbar and other contextual balloons will not be positioned
|
|
455
455
|
* underneath or above the page's UI.
|
|
456
456
|
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
457
|
+
* ```ts
|
|
458
|
+
* ui: {
|
|
459
|
+
* viewportOffset: { top: 10, right: 10, bottom: 10, left: 10 }
|
|
460
|
+
* }
|
|
461
|
+
* ```
|
|
462
462
|
*
|
|
463
463
|
* **Note:** If you want to modify the viewport offset in runtime (after editor was created), you can do that by overriding
|
|
464
|
-
*
|
|
464
|
+
* {@link module:ui/editorui/editorui~EditorUI#viewportOffset `editor.ui.viewportOffset`}.
|
|
465
|
+
*
|
|
466
|
+
* * **`ui.poweredBy`** – The configuration of the project logo displayed over editor's editing are in open-source integrations.
|
|
467
|
+
* It allows customizing the position of the logo to minimize the risk of collision with editor content
|
|
468
|
+
* and UI.
|
|
469
|
+
*
|
|
470
|
+
* The following configuration properties are supported:
|
|
471
|
+
*
|
|
472
|
+
* * **`position`** – Position of the project's logo (default: `'border'`).
|
|
473
|
+
* * When `'inside'` the logo will be displayed within the boundaries of the editing area.
|
|
474
|
+
* * When `'border'` the logo will be displayed over the bottom border of the editing area.
|
|
475
|
+
*
|
|
476
|
+
* * **`side`** (`'left'` or `'right'`, default: `'right'`) – Allows choosing the side of the editing area the
|
|
477
|
+
* logo will be displayed to.
|
|
478
|
+
*
|
|
479
|
+
* **Note**: If {@link module:core/editor/editorconfig~EditorConfig#language `config.language`} is set to an RTL (right-to-left)
|
|
480
|
+
* language, the side switches to `'left'` by default.
|
|
481
|
+
*
|
|
482
|
+
* * **`verticalOffset`** (default: `5`) – The vertical distance the logo can be moved away from its default position.
|
|
483
|
+
*
|
|
484
|
+
* **Note**: If `position` is `'border'`, the offset is measured from the (vertical) center of the logo.
|
|
485
|
+
*
|
|
486
|
+
* * **`horizontalOffset`** (default: `5`) – The horizontal distance between the side of the editing root and the
|
|
487
|
+
* nearest side of the logo.
|
|
488
|
+
*
|
|
489
|
+
* ```ts
|
|
490
|
+
* ui: {
|
|
491
|
+
* poweredBy: {
|
|
492
|
+
* position: 'border',
|
|
493
|
+
* side: 'left',
|
|
494
|
+
* verticalOffset: 2,
|
|
495
|
+
* horizontalOffset: 30
|
|
496
|
+
* }
|
|
497
|
+
* }
|
|
465
498
|
*/
|
|
466
499
|
ui?: UiConfig;
|
|
467
500
|
/**
|
|
@@ -475,6 +508,13 @@ export interface EditorConfig {
|
|
|
475
508
|
* {@glink features/html/html-embed HTML embed} features.
|
|
476
509
|
*/
|
|
477
510
|
updateSourceElementOnDestroy?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* The license key for the CKEditor 5 premium features.
|
|
513
|
+
*
|
|
514
|
+
* If you do not have a key yet, please [contact us](https://ckeditor.com/contact/) or
|
|
515
|
+
* [order a trial](https://orders.ckeditor.com/trial/premium-features).
|
|
516
|
+
*/
|
|
517
|
+
licenseKey?: string;
|
|
478
518
|
}
|
|
479
519
|
/**
|
|
480
520
|
* The `config.initialData` option cannot be used together with initial data passed as the first parameter of
|
|
@@ -533,4 +573,38 @@ export interface UiConfig {
|
|
|
533
573
|
right?: number;
|
|
534
574
|
top?: number;
|
|
535
575
|
};
|
|
576
|
+
poweredBy?: {
|
|
577
|
+
/**
|
|
578
|
+
* Position of the project's logo.
|
|
579
|
+
*
|
|
580
|
+
* * When `'inside'` the logo will be displayed within the boundaries of the editing area.
|
|
581
|
+
* * When `'border'` the logo will be displayed over the bottom border of the editing area.
|
|
582
|
+
*
|
|
583
|
+
* @default 'border'
|
|
584
|
+
*/
|
|
585
|
+
position: 'inside' | 'border';
|
|
586
|
+
/**
|
|
587
|
+
* Allows choosing the side of the editing area the logo will be displayed to.
|
|
588
|
+
*
|
|
589
|
+
* **Note:** If {@link module:core/editor/editorconfig~EditorConfig#language `config.language`} is set to an RTL (right-to-left)
|
|
590
|
+
* language, the side switches to `'left'` by default.
|
|
591
|
+
*
|
|
592
|
+
* @default 'right'
|
|
593
|
+
*/
|
|
594
|
+
side: 'left' | 'right';
|
|
595
|
+
/**
|
|
596
|
+
* The vertical distance the logo can be moved away from its default position.
|
|
597
|
+
*
|
|
598
|
+
* **Note:** If `position` is `'border'`, the offset is measured from the (vertical) center of the logo.
|
|
599
|
+
*
|
|
600
|
+
* @default 5
|
|
601
|
+
*/
|
|
602
|
+
verticalOffset: number;
|
|
603
|
+
/**
|
|
604
|
+
* The horizontal distance between the side of the editing root and the nearest side of the logo.
|
|
605
|
+
*
|
|
606
|
+
* @default 5
|
|
607
|
+
*/
|
|
608
|
+
horizontalOffset: number;
|
|
609
|
+
};
|
|
536
610
|
}
|