@ckeditor/ckeditor5-ckfinder 32.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 CKFinder feature** – https://github.com/ckeditor/ckeditor5-ckfinder <br>
5
- Copyright (c) 2003-2022, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
8
8
 
@@ -14,4 +14,4 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
14
14
  Trademarks
15
15
  ----------
16
16
 
17
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
17
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -3,7 +3,8 @@ CKEditor 5's CKFinder integration
3
3
 
4
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-ckfinder.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-ckfinder)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
- [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://travis-ci.com/ckeditor/ckeditor5)
6
+ [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
+ ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-ckfinder)
7
8
 
8
9
  This package implements the [CKFinder feature](https://ckeditor.com/docs/ckeditor5/latest/features/ckfinder.html). This feature allows you to easily insert images as well as links to files into the editor content. It is a bridge between CKEditor 5 WYSIWYG editor and [CKFinder file manager and uploader](https://ckeditor.com/ckfinder).
9
10
 
package/build/ckfinder.js CHANGED
@@ -1,5 +1,5 @@
1
1
  !function(e){const i=e.en=e.en||{};i.dictionary=Object.assign(i.dictionary||{},{"Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Insert image or file":"Insert image or file","Inserting image failed":"Inserting image failed","Selecting resized image failed":"Selecting resized image failed"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
2
2
  /*!
3
- * @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
3
+ * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
5
  */(()=>{var e={704:(e,i,t)=>{e.exports=t(79)("./src/core.js")},273:(e,i,t)=>{e.exports=t(79)("./src/ui.js")},209:(e,i,t)=>{e.exports=t(79)("./src/utils.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},i={};function t(n){var o=i[n];if(void 0!==o)return o.exports;var r=i[n]={exports:{}};return e[n](r,r.exports,t),r.exports}t.d=(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},t.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";t.r(n),t.d(n,{CKFinder:()=>c,CKFinderEditing:()=>d,CKFinderUI:()=>o});var e=t(704),i=t(273);class o extends e.Plugin{static get pluginName(){return"CKFinderUI"}init(){const e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(t=>{const o=e.commands.get("ckfinder"),r=new i.ButtonView(t);return r.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(o),r.on("execute",(()=>{e.execute("ckfinder"),e.editing.view.focus()})),r}))}}var r=t(209);class s extends e.Command{constructor(e){super(e),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const e=this.editor.commands.get("insertImage"),i=this.editor.commands.get("link");this.isEnabled=e.isEnabled||i.isEnabled}execute(){const e=this.editor,i=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=i&&"modal"!=i)throw new r.CKEditorError("ckfinder-unknown-openermethod",e);const t=this.editor.config.get("ckfinder.options")||{};t.chooseFiles=!0;const n=t.onInit;t.language||(t.language=e.locale.uiLanguage),t.onInit=i=>{n&&n(i),i.on("files:choose",(t=>{const n=t.data.files.toArray(),o=n.filter((e=>!e.isImage())),r=n.filter((e=>e.isImage()));for(const i of o)e.execute("link",i.getUrl());const s=[];for(const e of r){const t=e.getUrl();s.push(t||i.request("file:getProxyUrl",{file:e}))}s.length&&a(e,s)})),i.on("file:choose:resizedImage",(i=>{const t=i.data.resizedUrl;if(t)a(e,[t]);else{const i=e.plugins.get("Notification"),t=e.locale.t;i.showWarning(t("Could not obtain resized image URL."),{title:t("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[i](t)}}function a(e,i){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:i});else{const i=e.plugins.get("Notification"),t=e.locale.t;i.showWarning(t("Could not insert image at the current position."),{title:t("Inserting image failed"),namespace:"ckfinder"})}}class d extends e.Plugin{static get pluginName(){return"CKFinderEditing"}static get requires(){return[i.Notification,"LinkEditing"]}init(){const e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new r.CKEditorError("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new s(e))}}class c extends e.Plugin{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",d,o]}}})(),(window.CKEditor5=window.CKEditor5||{}).ckfinder=n})();
@@ -1 +1 @@
1
- !function(e){const i=e.af=e.af||{};i.dictionary=Object.assign(i.dictionary||{},{"Could not insert image at the current position.":"Beeld kan nie in die posisie toegevoeg word nie.","Could not obtain resized image URL.":"","Insert image or file":"Voeg beeld of lêer in","Inserting image failed":"","Selecting resized image failed":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const i=e.af=e.af||{};i.dictionary=Object.assign(i.dictionary||{},{"Could not insert image at the current position.":"Beeld kan nie in die posisie toegevoeg word nie.","Could not obtain resized image URL.":"Kon nie die beeld URL vir die aanpassing kry nie.","Insert image or file":"Voeg beeld of lêer in","Inserting image failed":"Beeld kan nie toegevoeg word nie","Selecting resized image failed":"Kon nie die beeld se grootte verander nie"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(i){const e=i.el=i.el||{};e.dictionary=Object.assign(e.dictionary||{},{"Could not insert image at the current position.":"Αδύνατη η εισαγωγή εικόνας στην τρέχουσα θέση.","Could not obtain resized image URL.":"Αδύνατη η λήψη URL εικόνας με αλλαγμένο μέγεθος.","Insert image or file":"Εισαγωγή εικόνας ή αρχείου","Inserting image failed":"Η εισαγωγή εικόνας απέτυχε.","Selecting resized image failed":"Η επιλογή εικόνας με αλλαγμένο μέγεθος απέτυχε"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- !function(e){const i=e.es=e.es||{};i.dictionary=Object.assign(i.dictionary||{},{"Could not insert image at the current position.":"No se puede insertar una imagen en la posición actual","Could not obtain resized image URL.":"No se pudo obtener el URL de la imagen redimensionada.","Insert image or file":"Insertar imagen o archivo","Inserting image failed":"Error al insertar la imagen","Selecting resized image failed":"No se pudo seleccionar la imagen redimensionada"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(e){const i=e.es=e.es||{};i.dictionary=Object.assign(i.dictionary||{},{"Could not insert image at the current position.":"No se pudo insertar la imagen en la posición actual.","Could not obtain resized image URL.":"No se pudo obtener el URL de la imagen redimensionada.","Insert image or file":"Insertar imagen o archivo","Inserting image failed":"Error al insertar la imagen","Selecting resized image failed":"No se pudo seleccionar la imagen redimensionada"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(a){const n=a.jv=a.jv||{};n.dictionary=Object.assign(n.dictionary||{},{"Could not insert image at the current position.":"Mboten saged mlebetaken gambar wonten papan menika","Could not obtain resized image URL.":"Mboten saged mundhut URL gambar ingkang dipunebah ukuranipun","Insert image or file":"Tambahaken berkas utawi gambar","Inserting image failed":"Gagal mlebetaken gambar","Selecting resized image failed":"Gagal milih gambar ingkang dipunebah ukuranipun"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(i){const e=i.ur=i.ur||{};e.dictionary=Object.assign(e.dictionary||{},{"Could not insert image at the current position.":"موجودہ مقام پہ عکس نصب نہیں ہو سکا۔","Could not obtain resized image URL.":"عکس کی پیمائش تبدیل کرنے کا ربط نہیں مل سکا۔","Insert image or file":"عکس یا مسل نصب کریں","Inserting image failed":"عکس نصب نہیں ہو سکا۔","Selecting resized image failed":"پیمائش شدہ عکس چننے میں ناکامی ہوئی"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -22,11 +22,11 @@ msgstr "Voeg beeld of lêer in"
22
22
 
23
23
  msgctxt "Error message displayed when inserting a resized version of an image failed."
24
24
  msgid "Could not obtain resized image URL."
25
- msgstr ""
25
+ msgstr "Kon nie die beeld URL vir die aanpassing kry nie."
26
26
 
27
27
  msgctxt "Title of a notification displayed when inserting a resized version of an image failed."
28
28
  msgid "Selecting resized image failed"
29
- msgstr ""
29
+ msgstr "Kon nie die beeld se grootte verander nie"
30
30
 
31
31
  msgctxt "Error message displayed when an image cannot be inserted at the current position."
32
32
  msgid "Could not insert image at the current position."
@@ -34,4 +34,4 @@ msgstr "Beeld kan nie in die posisie toegevoeg word nie."
34
34
 
35
35
  msgctxt "Title of a notification displayed when an image cannot be inserted at the current position."
36
36
  msgid "Inserting image failed"
37
- msgstr ""
37
+ msgstr "Beeld kan nie toegevoeg word nie"
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2003-2022, 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: Greek (https://www.transifex.com/ckeditor/teams/11143/el/)\n"
16
+ "Language: el\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "Toolbar button tooltip for inserting an image or file via a CKFinder file browser."
20
+ msgid "Insert image or file"
21
+ msgstr "Εισαγωγή εικόνας ή αρχείου"
22
+
23
+ msgctxt "Error message displayed when inserting a resized version of an image failed."
24
+ msgid "Could not obtain resized image URL."
25
+ msgstr "Αδύνατη η λήψη URL εικόνας με αλλαγμένο μέγεθος."
26
+
27
+ msgctxt "Title of a notification displayed when inserting a resized version of an image failed."
28
+ msgid "Selecting resized image failed"
29
+ msgstr "Η επιλογή εικόνας με αλλαγμένο μέγεθος απέτυχε"
30
+
31
+ msgctxt "Error message displayed when an image cannot be inserted at the current position."
32
+ msgid "Could not insert image at the current position."
33
+ msgstr "Αδύνατη η εισαγωγή εικόνας στην τρέχουσα θέση."
34
+
35
+ msgctxt "Title of a notification displayed when an image cannot be inserted at the current position."
36
+ msgid "Inserting image failed"
37
+ msgstr "Η εισαγωγή εικόνας απέτυχε."
@@ -30,7 +30,7 @@ msgstr "No se pudo seleccionar la imagen redimensionada"
30
30
 
31
31
  msgctxt "Error message displayed when an image cannot be inserted at the current position."
32
32
  msgid "Could not insert image at the current position."
33
- msgstr "No se puede insertar una imagen en la posición actual"
33
+ msgstr "No se pudo insertar la imagen en la posición actual."
34
34
 
35
35
  msgctxt "Title of a notification displayed when an image cannot be inserted at the current position."
36
36
  msgid "Inserting image failed"
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2003-2022, 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: Javanese (https://www.transifex.com/ckeditor/teams/11143/jv/)\n"
16
+ "Language: jv\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "Toolbar button tooltip for inserting an image or file via a CKFinder file browser."
20
+ msgid "Insert image or file"
21
+ msgstr "Tambahaken berkas utawi gambar"
22
+
23
+ msgctxt "Error message displayed when inserting a resized version of an image failed."
24
+ msgid "Could not obtain resized image URL."
25
+ msgstr "Mboten saged mundhut URL gambar ingkang dipunebah ukuranipun"
26
+
27
+ msgctxt "Title of a notification displayed when inserting a resized version of an image failed."
28
+ msgid "Selecting resized image failed"
29
+ msgstr "Gagal milih gambar ingkang dipunebah ukuranipun"
30
+
31
+ msgctxt "Error message displayed when an image cannot be inserted at the current position."
32
+ msgid "Could not insert image at the current position."
33
+ msgstr "Mboten saged mlebetaken gambar wonten papan menika"
34
+
35
+ msgctxt "Title of a notification displayed when an image cannot be inserted at the current position."
36
+ msgid "Inserting image failed"
37
+ msgstr "Gagal mlebetaken gambar"
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2003-2022, 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: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
16
+ "Language: ur\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "Toolbar button tooltip for inserting an image or file via a CKFinder file browser."
20
+ msgid "Insert image or file"
21
+ msgstr "عکس یا مسل نصب کریں"
22
+
23
+ msgctxt "Error message displayed when inserting a resized version of an image failed."
24
+ msgid "Could not obtain resized image URL."
25
+ msgstr "عکس کی پیمائش تبدیل کرنے کا ربط نہیں مل سکا۔"
26
+
27
+ msgctxt "Title of a notification displayed when inserting a resized version of an image failed."
28
+ msgid "Selecting resized image failed"
29
+ msgstr "پیمائش شدہ عکس چننے میں ناکامی ہوئی"
30
+
31
+ msgctxt "Error message displayed when an image cannot be inserted at the current position."
32
+ msgid "Could not insert image at the current position."
33
+ msgstr "موجودہ مقام پہ عکس نصب نہیں ہو سکا۔"
34
+
35
+ msgctxt "Title of a notification displayed when an image cannot be inserted at the current position."
36
+ msgid "Inserting image failed"
37
+ msgstr "عکس نصب نہیں ہو سکا۔"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ckfinder",
3
- "version": "32.0.0",
3
+ "version": "34.1.0",
4
4
  "description": "CKFinder integration for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,21 +12,21 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^32.0.0"
15
+ "ckeditor5": "^34.1.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-adapter-ckfinder": "^32.0.0",
19
- "@ckeditor/ckeditor5-clipboard": "^32.0.0",
20
- "@ckeditor/ckeditor5-core": "^32.0.0",
21
- "@ckeditor/ckeditor5-dev-utils": "^27.1.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^32.0.0",
23
- "@ckeditor/ckeditor5-engine": "^32.0.0",
24
- "@ckeditor/ckeditor5-image": "^32.0.0",
25
- "@ckeditor/ckeditor5-link": "^32.0.0",
26
- "@ckeditor/ckeditor5-paragraph": "^32.0.0",
27
- "@ckeditor/ckeditor5-theme-lark": "^32.0.0",
28
- "@ckeditor/ckeditor5-ui": "^32.0.0",
29
- "@ckeditor/ckeditor5-utils": "^32.0.0",
18
+ "@ckeditor/ckeditor5-adapter-ckfinder": "^34.1.0",
19
+ "@ckeditor/ckeditor5-clipboard": "^34.1.0",
20
+ "@ckeditor/ckeditor5-core": "^34.1.0",
21
+ "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^34.1.0",
23
+ "@ckeditor/ckeditor5-engine": "^34.1.0",
24
+ "@ckeditor/ckeditor5-image": "^34.1.0",
25
+ "@ckeditor/ckeditor5-link": "^34.1.0",
26
+ "@ckeditor/ckeditor5-paragraph": "^34.1.0",
27
+ "@ckeditor/ckeditor5-theme-lark": "^34.1.0",
28
+ "@ckeditor/ckeditor5-ui": "^34.1.0",
29
+ "@ckeditor/ckeditor5-utils": "^34.1.0",
30
30
  "webpack": "^5.58.1",
31
31
  "webpack-cli": "^4.9.0"
32
32
  },