@ckeditor/ckeditor5-ckbox 40.1.0 → 40.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/ckbox.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +17 -0
- package/lang/contexts.json +6 -2
- package/lang/translations/ar.po +18 -2
- package/lang/translations/az.po +18 -2
- package/lang/translations/bg.po +18 -2
- package/lang/translations/bn.po +18 -2
- package/lang/translations/ca.po +18 -2
- package/lang/translations/cs.po +18 -2
- package/lang/translations/da.po +18 -2
- package/lang/translations/de.po +18 -2
- package/lang/translations/el.po +18 -2
- package/lang/translations/en-au.po +18 -2
- package/lang/translations/en.po +18 -2
- package/lang/translations/es-co.po +18 -2
- package/lang/translations/es.po +18 -2
- package/lang/translations/et.po +18 -2
- package/lang/translations/fa.po +18 -2
- package/lang/translations/fi.po +18 -2
- package/lang/translations/fr.po +18 -2
- package/lang/translations/gl.po +18 -2
- package/lang/translations/he.po +18 -2
- package/lang/translations/hi.po +18 -2
- package/lang/translations/hr.po +18 -2
- package/lang/translations/hu.po +18 -2
- package/lang/translations/id.po +18 -2
- package/lang/translations/it.po +18 -2
- package/lang/translations/ja.po +18 -2
- package/lang/translations/ko.po +18 -2
- package/lang/translations/lt.po +18 -2
- package/lang/translations/lv.po +18 -2
- package/lang/translations/ms.po +18 -2
- package/lang/translations/nl.po +18 -2
- package/lang/translations/no.po +18 -2
- package/lang/translations/pl.po +18 -2
- package/lang/translations/pt-br.po +18 -2
- package/lang/translations/pt.po +18 -2
- package/lang/translations/ro.po +18 -2
- package/lang/translations/ru.po +18 -2
- package/lang/translations/sk.po +18 -2
- package/lang/translations/sq.po +18 -2
- package/lang/translations/sr-latn.po +18 -2
- package/lang/translations/sr.po +18 -2
- package/lang/translations/sv.po +18 -2
- package/lang/translations/th.po +18 -2
- package/lang/translations/tr.po +18 -2
- package/lang/translations/ug.po +18 -2
- package/lang/translations/uk.po +18 -2
- package/lang/translations/ur.po +18 -2
- package/lang/translations/uz.po +18 -2
- package/lang/translations/vi.po +18 -2
- package/lang/translations/zh-cn.po +18 -2
- package/lang/translations/zh.po +18 -2
- package/package.json +4 -3
- package/src/augmentation.d.ts +11 -1
- package/src/ckboxcommand.d.ts +8 -6
- package/src/ckboxcommand.js +5 -1
- package/src/ckboxconfig.d.ts +26 -0
- package/src/ckboxediting.d.ts +5 -12
- package/src/ckboxediting.js +7 -55
- package/src/ckboximageedit/ckboximageeditcommand.d.ts +97 -0
- package/src/ckboximageedit/ckboximageeditcommand.js +298 -0
- package/src/ckboximageedit/ckboximageeditediting.d.ts +28 -0
- package/src/ckboximageedit/ckboximageeditediting.js +36 -0
- package/src/ckboximageedit/ckboximageeditui.d.ts +24 -0
- package/src/ckboximageedit/ckboximageeditui.js +48 -0
- package/src/ckboximageedit/utils.d.ts +10 -0
- package/src/ckboximageedit/utils.js +48 -0
- package/src/ckboximageedit.d.ts +24 -0
- package/src/ckboximageedit.js +28 -0
- package/src/ckboxui.js +28 -1
- package/src/ckboxuploadadapter.d.ts +0 -5
- package/src/ckboxuploadadapter.js +15 -160
- package/src/ckboxutils.d.ts +50 -0
- package/src/ckboxutils.js +183 -0
- package/src/index.d.ts +4 -0
- package/src/index.js +3 -0
- package/src/utils.d.ts +31 -0
- package/src/utils.js +93 -0
- package/theme/ckboximageedit.css +53 -0
- package/theme/icons/ckbox-image-edit.svg +1 -0
package/lang/translations/sr.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
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
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Oтвори управљач датотекама."
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Није могуће одредити категорију за отпремлјену датотеку."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "Nije moguće pristupiti podrazumevanom radnom prostoru."
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "Uredi sliku"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "Obrađivanje uređene slike."
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "Server nije uspeo da obradi sliku."
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "Određivanje kategorije uređene slike nije uspelo."
|
package/lang/translations/sv.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Öppna filhanterare"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Kan inte avgöra kategorin på den uppladdade filen."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "Kan inte komma åt standardarbetsytan."
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "Redigera bild"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "Bearbetar den redigerade bilden."
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "Servern kunde inte bearbeta bilden."
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "Kunde inte fastställa den redigerade bildens kategori."
|
package/lang/translations/th.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "เปิดเครื่องมือจัดการไฟล์"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "ไม่สามารถกำหนดหมวดหมู่สำหรับไฟล์ที่อัปโหลด"
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "ไม่สามารถเข้าถึงพื้นที่ทำงานเริ่มต้น"
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "แก้ไขภาพ"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "กำลังประมวลผลภาพที่แก้ไข"
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "เซิร์ฟเวอร์ประมวลผลภาพไม่สำเร็จ"
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "ระบุหมวดหมู่ของภาพที่แก้ไขไม่สำเร็จ"
|
package/lang/translations/tr.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Dosya yöneticisini aç"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Yüklenen dosya için bir kategori belirlenemiyor."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "Varsayılan çalışma alanına erişilemiyor."
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "Görüntüyü düzenle"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "Düzenlenen görüntü işleniyor."
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "Sunucu görüntüyü işlemede başarısız oldu."
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "Düzenlenen görselin kategorisinin belirlenmesi başarısız oldu."
|
package/lang/translations/ug.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "ھۆججەت باشقۇرغۇچنى ئاچ"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "يۈكلەيدىغان ھۆججەتنىڭ تۈرىنى جەزملىيەلمىدى."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "كۆڭۈلدىكى خىزمەت بوشلۇقىنى زىيارەت قىلالمايدۇ"
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr ""
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr ""
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
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
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Відкрити менеджер файлів"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Не вдається визначити категорію для завантаженого файлу."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "Немає доступу до робочого простору за замовчуванням."
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "Редагувати зображення"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "Обробка відредагованого зображення."
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "Серверу не вдалося обробити зображення."
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "Не вдалося визначити категорію відредагованого зображення."
|
package/lang/translations/ur.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "فائل مینیجر کھولیں"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "اپلوڈ کی گئی فائل کا ذمرے کا تعین نہیں ہو سکا"
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr ""
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr ""
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr ""
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Fayl menejerini ochish"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Yuklangan fayl uchun toifani aniqlab bo‘lmadi."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr ""
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr ""
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr ""
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr ""
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "Mở trình quản lý tệp"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "Không thể xác định danh mục cho tệp được tải lên."
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "Không thể truy cập vào không gian làm việc mặc định."
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "Chỉnh sửa hình ảnh"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "Xử lý hình ảnh đã chỉnh sửa."
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "Máy chủ không thể xử lý hình ảnh."
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "Không thể xác định danh mục hình ảnh đã chỉnh sửa."
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "打开文件管理器"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "无法确定上传文件的类别。"
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "无法访问默认工作区"
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "编辑图片"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "正在处理已编辑的图片。"
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "服务器未能处理图片。"
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "未能确定已编辑图片的类别。"
|
package/lang/translations/zh.po
CHANGED
@@ -17,7 +17,7 @@ msgstr ""
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
18
18
|
"Content-Type: text/plain; charset=UTF-8\n"
|
19
19
|
|
20
|
-
msgctxt "
|
20
|
+
msgctxt "A toolbar button tooltip for opening the file browser that allows inserting an image or a file to the editor."
|
21
21
|
msgid "Open file manager"
|
22
22
|
msgstr "開啟檔案管理程式"
|
23
23
|
|
@@ -25,6 +25,22 @@ msgctxt "A message is displayed when CKEditor 5 cannot associate an image with a
|
|
25
25
|
msgid "Cannot determine a category for the uploaded file."
|
26
26
|
msgstr "無法確定上傳檔案的分類。"
|
27
27
|
|
28
|
-
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgctxt "A message is displayed when the user is not authorised to access the CKBox workspace configured as default one."
|
29
29
|
msgid "Cannot access default workspace."
|
30
30
|
msgstr "無法存取預設工作區。"
|
31
|
+
|
32
|
+
msgctxt "Image toolbar button tooltip for opening a dialog to manipulate the image."
|
33
|
+
msgid "Edit image"
|
34
|
+
msgstr "編輯圖片"
|
35
|
+
|
36
|
+
msgctxt "A message stating that image editing is in progress."
|
37
|
+
msgid "Processing the edited image."
|
38
|
+
msgstr "正在處理已編輯的圖片。"
|
39
|
+
|
40
|
+
msgctxt "A message is displayed when the server fails to process an image or doesn't respond."
|
41
|
+
msgid "Server failed to process the image."
|
42
|
+
msgstr "伺服器無法處理該圖片。"
|
43
|
+
|
44
|
+
msgctxt "A message is displayed when category of the image user wants to edit can't be determined."
|
45
|
+
msgid "Failed to determine category of edited image."
|
46
|
+
msgstr "無法判斷已編輯圖片的類別。"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-ckbox",
|
3
|
-
"version": "40.
|
3
|
+
"version": "40.2.0",
|
4
4
|
"description": "CKBox integration for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,8 +12,9 @@
|
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"ckeditor5": "40.
|
16
|
-
"blurhash": "
|
15
|
+
"ckeditor5": "40.2.0",
|
16
|
+
"blurhash": "2.0.5",
|
17
|
+
"lodash-es": "4.17.21"
|
17
18
|
},
|
18
19
|
"author": "CKSource (http://cksource.com/)",
|
19
20
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { CKBox, CKBoxCommand, CKBoxConfig, CKBoxEditing } from './index';
|
5
|
+
import type { CKBox, CKBoxCommand, CKBoxConfig, CKBoxEditing, CKBoxImageEdit, CKBoxImageEditEditing, CKBoxImageEditCommand, CKBoxImageEditUI } from './index';
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
7
7
|
interface EditorConfig {
|
8
8
|
/**
|
@@ -15,8 +15,18 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
15
15
|
interface PluginsMap {
|
16
16
|
[CKBox.pluginName]: CKBox;
|
17
17
|
[CKBoxEditing.pluginName]: CKBoxEditing;
|
18
|
+
[CKBoxImageEdit.pluginName]: CKBoxImageEdit;
|
19
|
+
[CKBoxImageEditEditing.pluginName]: CKBoxImageEditEditing;
|
20
|
+
[CKBoxImageEditUI.pluginName]: CKBoxImageEditUI;
|
18
21
|
}
|
19
22
|
interface CommandsMap {
|
20
23
|
ckbox: CKBoxCommand;
|
24
|
+
ckboxImageEdit: CKBoxImageEditCommand;
|
21
25
|
}
|
22
26
|
}
|
27
|
+
declare global {
|
28
|
+
var CKBox: {
|
29
|
+
mount(wrapper: Element, options: Record<string, unknown>): void;
|
30
|
+
mountImageEditor(wrapper: Element, options: Record<string, unknown>): void;
|
31
|
+
};
|
32
|
+
}
|
package/src/ckboxcommand.d.ts
CHANGED
@@ -3,12 +3,7 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
6
|
-
import type { CKBoxAssetDefinition } from './ckboxconfig';
|
7
|
-
declare global {
|
8
|
-
var CKBox: {
|
9
|
-
mount(wrapper: Element, options: Record<string, unknown>): void;
|
10
|
-
};
|
11
|
-
}
|
6
|
+
import type { CKBoxAssetDefinition, CKBoxAssetImageAttributesDefinition, CKBoxRawAssetDefinition } from './ckboxconfig';
|
12
7
|
/**
|
13
8
|
* The CKBox command. It is used by the {@link module:ckbox/ckboxediting~CKBoxEditing CKBox editing feature} to open the CKBox file manager.
|
14
9
|
* The file manager allows inserting an image or a link to a file into the editor content.
|
@@ -78,6 +73,7 @@ export default class CKBoxCommand extends Command {
|
|
78
73
|
* - language The language for CKBox dialog.
|
79
74
|
* - tokenUrl The token endpoint URL.
|
80
75
|
* - serviceOrigin The base URL of the API service.
|
76
|
+
* - forceDemoLabel Whether to force "Powered by CKBox" link.
|
81
77
|
* - dialog.onClose The callback function invoked after closing the CKBox dialog.
|
82
78
|
* - assets.onChoose The callback function invoked after choosing the assets.
|
83
79
|
*/
|
@@ -110,3 +106,9 @@ export default class CKBoxCommand extends Command {
|
|
110
106
|
*/
|
111
107
|
private _insertLink;
|
112
108
|
}
|
109
|
+
/**
|
110
|
+
* Parses the assets attributes into the internal data format.
|
111
|
+
*
|
112
|
+
* @internal
|
113
|
+
*/
|
114
|
+
export declare function prepareImageAssetAttributes(asset: CKBoxRawAssetDefinition): CKBoxAssetImageAttributesDefinition;
|
package/src/ckboxcommand.js
CHANGED
@@ -94,6 +94,7 @@ export default class CKBoxCommand extends Command {
|
|
94
94
|
* - language The language for CKBox dialog.
|
95
95
|
* - tokenUrl The token endpoint URL.
|
96
96
|
* - serviceOrigin The base URL of the API service.
|
97
|
+
* - forceDemoLabel Whether to force "Powered by CKBox" link.
|
97
98
|
* - dialog.onClose The callback function invoked after closing the CKBox dialog.
|
98
99
|
* - assets.onChoose The callback function invoked after choosing the assets.
|
99
100
|
*/
|
@@ -105,6 +106,7 @@ export default class CKBoxCommand extends Command {
|
|
105
106
|
language: ckboxConfig.language,
|
106
107
|
tokenUrl: ckboxConfig.tokenUrl,
|
107
108
|
serviceOrigin: ckboxConfig.serviceOrigin,
|
109
|
+
forceDemoLabel: ckboxConfig.forceDemoLabel,
|
108
110
|
dialog: {
|
109
111
|
onClose: () => this.fire('ckbox:close')
|
110
112
|
},
|
@@ -281,8 +283,10 @@ function prepareAssets({ assets, isImageAllowed, isLinkAllowed }) {
|
|
281
283
|
}
|
282
284
|
/**
|
283
285
|
* Parses the assets attributes into the internal data format.
|
286
|
+
*
|
287
|
+
* @internal
|
284
288
|
*/
|
285
|
-
function prepareImageAssetAttributes(asset) {
|
289
|
+
export function prepareImageAssetAttributes(asset) {
|
286
290
|
const { imageFallbackUrl, imageSources } = getImageUrls(asset.data.imageUrls);
|
287
291
|
const { description, width, height, blurHash } = asset.data.metadata;
|
288
292
|
const imagePlaceholder = blurHashToDataUrl(blurHash);
|
package/src/ckboxconfig.d.ts
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
* @module ckbox/ckboxconfig
|
7
7
|
*/
|
8
8
|
import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
9
|
+
import type { ArrayOrItem } from 'ckeditor5/src/utils';
|
9
10
|
/**
|
10
11
|
* The configuration of the {@link module:ckbox/ckbox~CKBox CKBox feature}.
|
11
12
|
*
|
@@ -85,6 +86,27 @@ export interface CKBoxConfig {
|
|
85
86
|
* If defined, it is an error, when the user has no access to the specified workspace.
|
86
87
|
*/
|
87
88
|
defaultUploadWorkspaceId?: string;
|
89
|
+
/**
|
90
|
+
* Enforces displaying the "Powered by CKBox" link regardless of the CKBox plan used.
|
91
|
+
*/
|
92
|
+
forceDemoLabel?: boolean;
|
93
|
+
/**
|
94
|
+
* Allows editing images that are not hosted in CKBox service.
|
95
|
+
*
|
96
|
+
* This configuration option should whitelist URL(s) of images that should be editable.
|
97
|
+
* Make sure that allowed image resources have CORS enabled.
|
98
|
+
*
|
99
|
+
* The image is editable if this option is:
|
100
|
+
* * a regular expression and it matches the image URL, or
|
101
|
+
* * a custom function that returns `true` for the image URL, or
|
102
|
+
* * `'origin'` literal and the image URL is from the same origin, or
|
103
|
+
* * an array of the above and the image URL matches one of the array elements.
|
104
|
+
*
|
105
|
+
* Images hosted in CKBox are always editable.
|
106
|
+
*
|
107
|
+
* @default []
|
108
|
+
*/
|
109
|
+
allowExternalImagesEditing?: ArrayOrItem<RegExp | 'origin' | ((src: string) => boolean)>;
|
88
110
|
/**
|
89
111
|
* Inserts the unique asset ID as the `data-ckbox-resource-id` attribute. To disable this behavior, set it to `true`.
|
90
112
|
*
|
@@ -296,4 +318,8 @@ export interface CKBoxRawAssetMetadataDefinition {
|
|
296
318
|
* The blurhash placeholder value.
|
297
319
|
*/
|
298
320
|
blurHash?: string;
|
321
|
+
/**
|
322
|
+
* The processing status of the asset.
|
323
|
+
*/
|
324
|
+
metadataProcessingStatus?: string;
|
299
325
|
}
|
package/src/ckboxediting.d.ts
CHANGED
@@ -2,12 +2,9 @@
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
/**
|
6
|
-
* @module ckbox/ckboxediting
|
7
|
-
*/
|
8
|
-
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
9
5
|
import { Plugin } from 'ckeditor5/src/core';
|
10
6
|
import CKBoxUploadAdapter from './ckboxuploadadapter';
|
7
|
+
import CKBoxUtils from './ckboxutils';
|
11
8
|
/**
|
12
9
|
* The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
|
13
10
|
* {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
|
@@ -24,19 +21,15 @@ export default class CKBoxEditing extends Plugin {
|
|
24
21
|
/**
|
25
22
|
* @inheritDoc
|
26
23
|
*/
|
27
|
-
static get requires(): readonly ["
|
24
|
+
static get requires(): readonly ["LinkEditing", "PictureEditing", typeof CKBoxUploadAdapter, typeof CKBoxUtils];
|
28
25
|
/**
|
29
26
|
* @inheritDoc
|
30
27
|
*/
|
31
|
-
init():
|
32
|
-
/**
|
33
|
-
* Returns a token used by the CKBox plugin for communication with the CKBox service.
|
34
|
-
*/
|
35
|
-
getToken(): InitializedToken;
|
28
|
+
init(): void;
|
36
29
|
/**
|
37
|
-
*
|
30
|
+
* Checks if at least one image plugin is loaded.
|
38
31
|
*/
|
39
|
-
private
|
32
|
+
private _checkImagePlugins;
|
40
33
|
/**
|
41
34
|
* Extends the schema to allow the `ckboxImageId` and `ckboxLinkId` attributes for links and images.
|
42
35
|
*/
|