@ckeditor/ckeditor5-ckbox 38.2.0-alpha.1 → 39.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -1
- 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 -0
- 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/lang/contexts.json +2 -1
- package/lang/translations/ar.po +4 -0
- package/lang/translations/az.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/es-co.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/fa.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/ko.po +4 -0
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sq.po +29 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/ug.po +4 -0
- package/lang/translations/uk.po +4 -0
- package/lang/translations/ur.po +4 -0
- package/lang/translations/uz.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +2 -3
- package/src/augmentation.d.ts +1 -1
- package/src/ckbox.d.ts +3 -3
- package/src/ckbox.js +3 -3
- package/src/ckboxcommand.d.ts +2 -3
- package/src/ckboxcommand.js +12 -25
- package/src/ckboxconfig.d.ts +26 -15
- package/src/ckboxediting.d.ts +2 -2
- package/src/ckboxediting.js +5 -6
- package/src/ckboxui.d.ts +1 -1
- package/src/ckboxui.js +2 -2
- package/src/ckboxuploadadapter.d.ts +3 -3
- package/src/ckboxuploadadapter.js +28 -30
- package/src/index.d.ts +6 -6
- package/src/index.js +4 -4
- package/src/utils.d.ts +7 -10
- package/src/utils.js +27 -68
package/lang/translations/hr.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Otvori upravitelj datoteka"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Nije moguće utvrditi kategoriju prenesene datoteke."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
package/lang/translations/hu.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Fájlkezelő megnyitása"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Nem sikerült meghatározni a feltöltött fájl kategóriáját."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nem lehetséges hozzáférni az alapértelmezett munkaterülethez."
|
package/lang/translations/id.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Buka manajer berkas"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Tak dapat menentukan kategori untuk berkas yang terunggah."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Tidak dapat mengakses ruang kerja baku."
|
package/lang/translations/it.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Apri il gestore dei file"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Impossibile determinare la categoria del file caricato."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Impossibile accedere all'area di lavoro predefinita."
|
package/lang/translations/ja.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "ファイルマネージャーを開く"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "アップロードされたファイルのカテゴリを特定することができません。"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "デフォルトワークスペースにアクセスできません。"
|
package/lang/translations/ko.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "파일 관리자 열기"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "업로드된 파일의 카테고리를 확인할 수 없습니다."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "기본 작업 공간에 액세스할 수 없습니다."
|
package/lang/translations/lt.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Atidaryti failų tvarkyklę"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Negalima apibrėžti įkelto failo kategorijos."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Negalima pasiekti numatytosios darbo erdvės."
|
package/lang/translations/lv.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Atvērt failu pārvaldnieku"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Nav iespējams noteikt augšupielādētā faila kategoriju"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nevar piekļūt noklusējuma darbvietai."
|
package/lang/translations/ms.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Buka pengurus fail"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Gagal menentukan kategori bagi fail yang dimuat naik."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Tidak dapat mengakses ruang kerja lalai."
|
package/lang/translations/nl.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Open bestandsmanager"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Kan geen categorie bepalen voor het geüploade bestand."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Geen toegang mogelijk tot standaard werkplek."
|
package/lang/translations/no.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Åpne filutforsker"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Kunne ikke avgjøre kategori for den opplastede filen."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Får ikke tilgang til standard arbeidsflate."
|
package/lang/translations/pl.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Otwórz menedżer plików"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Nie można ustalić kategorii przesłanego pliku."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nie można uzyskać dostępu do domyślnego obszaru roboczego."
|
@@ -23,3 +23,7 @@ msgstr "Abrir gerenciador de arquivos"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Não foi possível determinar a categoria para o arquivo enviado."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Não é possível acessar o espaço de trabalho padrão."
|
package/lang/translations/pt.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Abrir gestor de ficheiros"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Não é possível determinar a categoria do ficheiro carregado."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Não é possível aceder ao espaço de trabalho padrão."
|
package/lang/translations/ro.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Deschidere manager fișiere"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Categoria fișierului încărcat nu poate fi stabilită."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nu poți accesa spațiul de lucru implicit."
|
package/lang/translations/ru.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Открыть менеджер файлов"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Не удаётся определить категорию для загруженного файла."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Не удается получить доступ к рабочему пространству по умолчанию."
|
package/lang/translations/sk.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Otvoriť manažér súborov"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Neznáma kategória pre nahratý súbor."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nie je možné získať prístup k predvolenému pracovnému priestoru."
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (c) 2003-2023, CKSource Holding sp. z o.o. 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: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
|
16
|
+
"Language: sq\n"
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18
|
+
|
19
|
+
msgctxt "Toolbar button tooltip for opening a file browser that allows inserting an image or a file to the editor."
|
20
|
+
msgid "Open file manager"
|
21
|
+
msgstr "Hap menaxhuesin e skedarëve"
|
22
|
+
|
23
|
+
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
|
+
msgid "Cannot determine a category for the uploaded file."
|
25
|
+
msgstr "Nuk mund të përcaktohet kategori për skedarin e ngarkuar."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
@@ -23,3 +23,7 @@ msgstr "Otvori upravljač datotekama"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Nije moguće odrediti kategoriju za otpremljenu datoteku."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
package/lang/translations/sr.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Oтвори управљач датотекама."
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Није могуће одредити категорију за отпремлјену датотеку."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Nije moguće pristupiti podrazumevanom radnom prostoru."
|
package/lang/translations/sv.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Öppna filhanterare"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Kan inte avgöra kategorin på den uppladdade filen."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Kan inte komma åt standardarbetsytan."
|
package/lang/translations/th.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "เปิดเครื่องมือจัดการไฟล์
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "ไม่สามารถกำหนดหมวดหมู่สำหรับไฟล์ที่อัปโหลด"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "ไม่สามารถเข้าถึงพื้นที่ทำงานเริ่มต้น"
|
package/lang/translations/tr.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Dosya yöneticisini aç"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Yüklenen dosya için bir kategori belirlenemiyor."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Varsayılan çalışma alanına erişilemiyor."
|
package/lang/translations/ug.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "ھۆججەت باشقۇرغۇچنى ئاچ"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "يۈكلەيدىغان ھۆججەتنىڭ تۈرىنى جەزملىيەلمىدى."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Відкрити менеджер файлів"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Не вдається визначити категорію для завантаженого файлу."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Немає доступу до робочого простору за замовчуванням."
|
package/lang/translations/ur.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "فائل مینیجر کھولیں"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "اپلوڈ کی گئی فائل کا ذمرے کا تعین نہیں ہو سکا"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
package/lang/translations/uz.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Fayl menejerini ochish"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Yuklangan fayl uchun toifani aniqlab bo‘lmadi."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "Mở trình quản lý tệp"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "Không thể xác định danh mục cho tệp được tải lên."
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "Không thể truy cập vào không gian làm việc mặc định."
|
@@ -23,3 +23,7 @@ msgstr "打开文件管理器"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "无法确定上传文件的类别。"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "无法访问默认工作区"
|
package/lang/translations/zh.po
CHANGED
@@ -23,3 +23,7 @@ msgstr "開啟檔案管理程式"
|
|
23
23
|
msgctxt "A message is displayed when CKEditor 5 cannot associate an image with any of the categories defined in CKBox while uploading an asset."
|
24
24
|
msgid "Cannot determine a category for the uploaded file."
|
25
25
|
msgstr "無法確定上傳檔案的分類。"
|
26
|
+
|
27
|
+
msgctxt "A message is displayed when the user is not authorised to access CKBox workspace configured as default one."
|
28
|
+
msgid "Cannot access default workspace."
|
29
|
+
msgstr "無法存取預設工作區。"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-ckbox",
|
3
|
-
"version": "
|
3
|
+
"version": "39.0.0",
|
4
4
|
"description": "CKBox integration for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -11,9 +11,8 @@
|
|
11
11
|
"ckeditor5-dll"
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
|
-
"type": "module",
|
15
14
|
"dependencies": {
|
16
|
-
"ckeditor5": "
|
15
|
+
"ckeditor5": "39.0.0"
|
17
16
|
},
|
18
17
|
"engines": {
|
19
18
|
"node": ">=16.0.0",
|
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 } from './index';
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
7
7
|
interface EditorConfig {
|
8
8
|
/**
|
package/src/ckbox.d.ts
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module ckbox/ckbox
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
9
|
-
import CKBoxUI from './ckboxui
|
10
|
-
import CKBoxEditing from './ckboxediting
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import CKBoxUI from './ckboxui';
|
10
|
+
import CKBoxEditing from './ckboxediting';
|
11
11
|
/**
|
12
12
|
* The CKBox feature, a bridge between the CKEditor 5 WYSIWYG editor and the CKBox file manager and uploader.
|
13
13
|
*
|
package/src/ckbox.js
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
/**
|
6
6
|
* @module ckbox/ckbox
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
9
|
-
import CKBoxUI from './ckboxui
|
10
|
-
import CKBoxEditing from './ckboxediting
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import CKBoxUI from './ckboxui';
|
10
|
+
import CKBoxEditing from './ckboxediting';
|
11
11
|
/**
|
12
12
|
* The CKBox feature, a bridge between the CKEditor 5 WYSIWYG editor and the CKBox file manager and uploader.
|
13
13
|
*
|
package/src/ckboxcommand.d.ts
CHANGED
@@ -2,8 +2,8 @@
|
|
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 { Command, type Editor } from 'ckeditor5/src/core
|
6
|
-
import type { CKBoxAssetDefinition } from './ckboxconfig
|
5
|
+
import { Command, type Editor } from 'ckeditor5/src/core';
|
6
|
+
import type { CKBoxAssetDefinition } from './ckboxconfig';
|
7
7
|
declare global {
|
8
8
|
var CKBox: {
|
9
9
|
mount(wrapper: Element, options: Record<string, unknown>): void;
|
@@ -78,7 +78,6 @@ export default class CKBoxCommand extends Command {
|
|
78
78
|
* - language The language for CKBox dialog.
|
79
79
|
* - tokenUrl The token endpoint URL.
|
80
80
|
* - serviceOrigin The base URL of the API service.
|
81
|
-
* - assetsOrigin The base URL for assets inserted into the editor.
|
82
81
|
* - dialog.onClose The callback function invoked after closing the CKBox dialog.
|
83
82
|
* - assets.onChoose The callback function invoked after choosing the assets.
|
84
83
|
*/
|
package/src/ckboxcommand.js
CHANGED
@@ -2,9 +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
|
-
import { Command } from 'ckeditor5/src/core
|
6
|
-
import { createElement, toMap } from 'ckeditor5/src/utils
|
7
|
-
import {
|
5
|
+
import { Command } from 'ckeditor5/src/core';
|
6
|
+
import { createElement, toMap } from 'ckeditor5/src/utils';
|
7
|
+
import { getImageUrls } from './utils';
|
8
8
|
// Defines the waiting time (in milliseconds) for inserting the chosen asset into the model. The chosen asset is temporarily stored in the
|
9
9
|
// `CKBoxCommand#_chosenAssets` and it is removed from there automatically after this time. See `CKBoxCommand#_chosenAssets` for more
|
10
10
|
// details.
|
@@ -94,7 +94,6 @@ 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
|
-
* - assetsOrigin The base URL for assets inserted into the editor.
|
98
97
|
* - dialog.onClose The callback function invoked after closing the CKBox dialog.
|
99
98
|
* - assets.onChoose The callback function invoked after choosing the assets.
|
100
99
|
*/
|
@@ -106,7 +105,6 @@ export default class CKBoxCommand extends Command {
|
|
106
105
|
language: ckboxConfig.language,
|
107
106
|
tokenUrl: ckboxConfig.tokenUrl,
|
108
107
|
serviceOrigin: ckboxConfig.serviceOrigin,
|
109
|
-
assetsOrigin: ckboxConfig.assetsOrigin,
|
110
108
|
dialog: {
|
111
109
|
onClose: () => this.fire('ckbox:close')
|
112
110
|
},
|
@@ -150,12 +148,8 @@ export default class CKBoxCommand extends Command {
|
|
150
148
|
}
|
151
149
|
const imageCommand = editor.commands.get('insertImage');
|
152
150
|
const linkCommand = editor.commands.get('link');
|
153
|
-
const ckboxEditing = editor.plugins.get('CKBoxEditing');
|
154
|
-
const assetsOrigin = editor.config.get('ckbox.assetsOrigin');
|
155
151
|
const assetsToProcess = prepareAssets({
|
156
152
|
assets,
|
157
|
-
origin: assetsOrigin,
|
158
|
-
token: ckboxEditing.getToken(),
|
159
153
|
isImageAllowed: imageCommand.isEnabled,
|
160
154
|
isLinkAllowed: linkCommand.isEnabled
|
161
155
|
});
|
@@ -247,18 +241,18 @@ export default class CKBoxCommand extends Command {
|
|
247
241
|
/**
|
248
242
|
* Parses the chosen assets into the internal data format. Filters out chosen assets that are not allowed.
|
249
243
|
*/
|
250
|
-
function prepareAssets({ assets,
|
244
|
+
function prepareAssets({ assets, isImageAllowed, isLinkAllowed }) {
|
251
245
|
return assets
|
252
246
|
.map(asset => isImage(asset) ?
|
253
247
|
{
|
254
248
|
id: asset.data.id,
|
255
249
|
type: 'image',
|
256
|
-
attributes: prepareImageAssetAttributes(asset
|
250
|
+
attributes: prepareImageAssetAttributes(asset)
|
257
251
|
} :
|
258
252
|
{
|
259
253
|
id: asset.data.id,
|
260
254
|
type: 'link',
|
261
|
-
attributes: prepareLinkAssetAttributes(asset
|
255
|
+
attributes: prepareLinkAssetAttributes(asset)
|
262
256
|
})
|
263
257
|
.filter(asset => asset.type === 'image' ? isImageAllowed : isLinkAllowed);
|
264
258
|
}
|
@@ -267,14 +261,8 @@ function prepareAssets({ assets, origin, token, isImageAllowed, isLinkAllowed })
|
|
267
261
|
*
|
268
262
|
* @param origin The base URL for assets inserted into the editor.
|
269
263
|
*/
|
270
|
-
function prepareImageAssetAttributes(asset
|
271
|
-
const { imageFallbackUrl, imageSources } = getImageUrls(
|
272
|
-
token,
|
273
|
-
origin,
|
274
|
-
id: asset.data.id,
|
275
|
-
width: asset.data.metadata.width,
|
276
|
-
extension: asset.data.extension
|
277
|
-
});
|
264
|
+
function prepareImageAssetAttributes(asset) {
|
265
|
+
const { imageFallbackUrl, imageSources } = getImageUrls(asset.data.imageUrls);
|
278
266
|
return {
|
279
267
|
imageFallbackUrl,
|
280
268
|
imageSources,
|
@@ -286,10 +274,10 @@ function prepareImageAssetAttributes(asset, token, origin) {
|
|
286
274
|
*
|
287
275
|
* @param origin The base URL for assets inserted into the editor.
|
288
276
|
*/
|
289
|
-
function prepareLinkAssetAttributes(asset
|
277
|
+
function prepareLinkAssetAttributes(asset) {
|
290
278
|
return {
|
291
279
|
linkName: asset.data.name,
|
292
|
-
linkHref: getAssetUrl(asset
|
280
|
+
linkHref: getAssetUrl(asset)
|
293
281
|
};
|
294
282
|
}
|
295
283
|
/**
|
@@ -307,9 +295,8 @@ function isImage(asset) {
|
|
307
295
|
*
|
308
296
|
* @param origin The base URL for assets inserted into the editor.
|
309
297
|
*/
|
310
|
-
function getAssetUrl(asset
|
311
|
-
const
|
312
|
-
const url = new URL(`${environmentId}/assets/${asset.data.id}/file`, origin);
|
298
|
+
function getAssetUrl(asset) {
|
299
|
+
const url = new URL(asset.data.url);
|
313
300
|
url.searchParams.set('download', 'true');
|
314
301
|
return url.toString();
|
315
302
|
}
|
package/src/ckboxconfig.d.ts
CHANGED
@@ -36,7 +36,6 @@ import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
|
|
36
36
|
* },
|
37
37
|
* ignoreDataId: true,
|
38
38
|
* serviceOrigin: 'https://example.com/',
|
39
|
-
* assetsOrigin: 'https://example.cloud/',
|
40
39
|
* tokenUrl: 'https://example.com/cs-token-endpoint'
|
41
40
|
* }
|
42
41
|
* } )
|
@@ -80,6 +79,12 @@ export interface CKBoxConfig {
|
|
80
79
|
* @default null
|
81
80
|
*/
|
82
81
|
defaultUploadCategories?: Record<string, Array<string>> | null;
|
82
|
+
/**
|
83
|
+
* Defines the workspace id to use during upload when the user has access to more than one workspace.
|
84
|
+
*
|
85
|
+
* If defined, it is an error, when the user has no access to the specified workspace.
|
86
|
+
*/
|
87
|
+
defaultUploadWorkspaceId?: string;
|
83
88
|
/**
|
84
89
|
* Inserts the unique asset ID as the `data-ckbox-resource-id` attribute. To disable this behavior, set it to `true`.
|
85
90
|
*
|
@@ -92,12 +97,6 @@ export interface CKBoxConfig {
|
|
92
97
|
* @default 'https://api.ckbox.io'
|
93
98
|
*/
|
94
99
|
serviceOrigin?: string;
|
95
|
-
/**
|
96
|
-
* Configures the base URL for assets inserted into the editor. Required only in on-premises installations.
|
97
|
-
*
|
98
|
-
* @default 'https://ckbox.cloud'
|
99
|
-
*/
|
100
|
-
assetsOrigin?: string;
|
101
100
|
/**
|
102
101
|
* Configures the language for the CKBox dialog.
|
103
102
|
*
|
@@ -219,6 +218,18 @@ export interface CKBoxAssetLinkAttributesDefinition {
|
|
219
218
|
*/
|
220
219
|
linkHref: string;
|
221
220
|
}
|
221
|
+
/**
|
222
|
+
* The source set of the responsive image provided by the CKBox backend.
|
223
|
+
*
|
224
|
+
* Each numeric key corresponds to display width of the image.
|
225
|
+
*/
|
226
|
+
export interface CKBoxImageUrls {
|
227
|
+
[width: number]: string;
|
228
|
+
/**
|
229
|
+
* A fallback URL for browsers that do not support the "webp" format.
|
230
|
+
*/
|
231
|
+
default: string;
|
232
|
+
}
|
222
233
|
/**
|
223
234
|
* Raw asset definition that is received from the CKBox feature.
|
224
235
|
*/
|
@@ -227,10 +238,6 @@ export interface CKBoxRawAssetDefinition {
|
|
227
238
|
* A raw asset data definition.
|
228
239
|
*/
|
229
240
|
data: CKBoxRawAssetDataDefinition;
|
230
|
-
/**
|
231
|
-
* An asset origin URL.
|
232
|
-
*/
|
233
|
-
origin: string;
|
234
241
|
}
|
235
242
|
/**
|
236
243
|
* Part of raw asset data that is received from the CKBox feature.
|
@@ -240,10 +247,6 @@ export interface CKBoxRawAssetDataDefinition {
|
|
240
247
|
* An unique asset id.
|
241
248
|
*/
|
242
249
|
id: string;
|
243
|
-
/**
|
244
|
-
* An asset extension.
|
245
|
-
*/
|
246
|
-
extension: string;
|
247
250
|
/**
|
248
251
|
* An asset name.
|
249
252
|
*/
|
@@ -252,6 +255,14 @@ export interface CKBoxRawAssetDataDefinition {
|
|
252
255
|
* A raw asset metadata definition.
|
253
256
|
*/
|
254
257
|
metadata?: CKBoxRawAssetMetadataDefinition;
|
258
|
+
/**
|
259
|
+
* The source set of the responsive image.
|
260
|
+
*/
|
261
|
+
imageUrls?: CKBoxImageUrls;
|
262
|
+
/**
|
263
|
+
* The asset location.
|
264
|
+
*/
|
265
|
+
url: string;
|
255
266
|
}
|
256
267
|
/**
|
257
268
|
* Part of raw asset data that is received from the CKBox feature. Properties are set only if the chosen asset is an image.
|
package/src/ckboxediting.d.ts
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
* @module ckbox/ckboxediting
|
7
7
|
*/
|
8
8
|
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
9
|
-
import { Plugin } from 'ckeditor5/src/core
|
10
|
-
import CKBoxUploadAdapter from './ckboxuploadadapter
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
10
|
+
import CKBoxUploadAdapter from './ckboxuploadadapter';
|
11
11
|
/**
|
12
12
|
* The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
|
13
13
|
* {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
|
package/src/ckboxediting.js
CHANGED
@@ -2,11 +2,11 @@
|
|
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 { Plugin } from 'ckeditor5/src/core
|
6
|
-
import { Range } from 'ckeditor5/src/engine
|
7
|
-
import { CKEditorError, logError } from 'ckeditor5/src/utils
|
8
|
-
import CKBoxCommand from './ckboxcommand
|
9
|
-
import CKBoxUploadAdapter from './ckboxuploadadapter
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
6
|
+
import { Range } from 'ckeditor5/src/engine';
|
7
|
+
import { CKEditorError, logError } from 'ckeditor5/src/utils';
|
8
|
+
import CKBoxCommand from './ckboxcommand';
|
9
|
+
import CKBoxUploadAdapter from './ckboxuploadadapter';
|
10
10
|
/**
|
11
11
|
* The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
|
12
12
|
* {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
|
@@ -75,7 +75,6 @@ export default class CKBoxEditing extends Plugin {
|
|
75
75
|
const editor = this.editor;
|
76
76
|
editor.config.define('ckbox', {
|
77
77
|
serviceOrigin: 'https://api.ckbox.io',
|
78
|
-
assetsOrigin: 'https://ckbox.cloud',
|
79
78
|
defaultUploadCategories: null,
|
80
79
|
ignoreDataId: false,
|
81
80
|
language: editor.locale.uiLanguage,
|
package/src/ckboxui.d.ts
CHANGED
package/src/ckboxui.js
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module ckbox/ckboxui
|
7
7
|
*/
|
8
|
-
import { Plugin } from 'ckeditor5/src/core
|
9
|
-
import { ButtonView } from 'ckeditor5/src/ui
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
9
|
+
import { ButtonView } from 'ckeditor5/src/ui';
|
10
10
|
import browseFilesIcon from '../theme/icons/browse-files.svg';
|
11
11
|
/**
|
12
12
|
* The CKBoxUI plugin. It introduces the `'ckbox'` toolbar button.
|