@ckeditor/ckeditor5-image 43.1.0 → 43.2.0-alpha.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/build/image.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/ug.js +1 -1
- package/dist/image/insertimagecommand.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/ug.po +33 -33
- package/package.json +11 -11
- package/src/image/insertimagecommand.d.ts +2 -0
- package/src/image/insertimagecommand.js +3 -2
package/build/translations/ca.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(a){const e=a.ca=a.ca||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"
|
|
1
|
+
!function(a){const e=a.ca=a.ca||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Parteix el text","Caption for image: %0":"Peu de foto: %0","Caption for the image":"Peu de foto","Centered image":"Imatge centrada","Change image text alternative":"Canviar l'alternativa del text de la imatge",Custom:"Personalitzat","Custom image size":"Mida de la imatge personalitzada","Enter image caption":"Introduir el peu de foto de la imatge","Error during image upload":"Error durant la càrrega de la imatge","From computer":"Des de l'ordinador","Full size image":"Imatge a mida completa",Image:"Imatge","Image from computer":"Imatge des de l'ordinador","Image resize list":"Llista de redimensionament de la imatge","Image toolbar":"Barra d'eines d'imatge","Image upload complete":"S'ha completat la pujada de la imatge","Image via URL":"Imatge mitjançant un URL","image widget":"giny d'imatge","In line":"A la línia","Insert image":"Introduir la imatge","Insert image via URL":"Introduir la imatge mitjançant l'URL","Insert via URL":"Insereix mitjançant un URL","Left aligned image":"Imatge alineada a l'esquerra",Original:"Original","Replace from computer":"Substitueix-ho des de l'ordinador","Replace image":"Substitueix la imatge","Replace image from computer":"Substitueix la imatge des de l'ordinador","Resize image":"Redimensionar la imatge","Resize image (in %0)":"Canvia la mida de la imatge (a %0)","Resize image to %0":"Redimensiona la imatge a %0","Resize image to the original size":"Redimensiona la imatge a la mida original","Right aligned image":"Imatge alineada a la dreta","Side image":"Imatge lateral","Text alternative":"Alternativa de text","The value must not be empty.":"El valor no pot estar buit.","The value should be a plain number.":"El valor ha de ser un nombre senzill.","Update image URL":"Actualitzar l'URL de la imatge","Upload failed":"No s'ha pogut carregar","Upload from computer":"Puja-ho des de l'ordinador","Upload image from computer":"Puja la imatge des de l'ordinador","Uploading image":"S'està pujant la imatge","Via URL":"Mitjançant un URL","Wrap text":"Embolcallar el text","You have no image upload permissions.":"No tens permisos per pujar imatges."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/build/translations/ug.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){const a=e.ug=e.ug||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"ئوتتۇردىكى رەسىم","Change image text alternative":"رەسىملىك تېكىست تاللىغۇچنى ئۆزگەرتىش",Custom:"","Custom image size":"","Enter image caption":"رەسىمنىڭ تېمىسىنى كىرگۈزۈڭ","Error during image upload":"","From computer":"","Full size image":"ئەسلى چوڭلۇقتىكى رەسىم",Image:"","Image from computer":"","Image resize list":"","Image toolbar":"","Image upload complete":"","Image via URL":"","image widget":"رەسىمچىك","In line":"","Insert image":"رەسىم قىستۇرۇش","Insert image via URL":"","Insert via URL":"","Left aligned image":"سولغا توغۇرلانغان رەسىم",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image (in %0)":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"ئوڭغا توغۇرلانغان رەسىم","Side image":"يان رەسىم","Text alternative":"تېكىست ئاملاشتۇرۇش","The value must not be empty.":"","The value should be a plain number.":"","Update image URL":"","Upload failed":"چىقىرىش مەغلۇپ بولدى","Upload from computer":"","Upload image from computer":"","Uploading image":"","Via URL":"","Wrap text":"","You have no image upload permissions.":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(e){const a=e.ug=e.ug||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"تېكىست ئۈز","Caption for image: %0":"سۈرەت چۈشەندۈرۈشى: %0","Caption for the image":"سۈرەت چۈشەندۈرۈشى","Centered image":"ئوتتۇردىكى رەسىم","Change image text alternative":"رەسىملىك تېكىست تاللىغۇچنى ئۆزگەرتىش",Custom:"ئىختىيارى","Custom image size":"ئىختىيارى سۈرەت چوڭلۇقى","Enter image caption":"رەسىمنىڭ تېمىسىنى كىرگۈزۈڭ","Error during image upload":"سۈرەت يۈكلەشتە خاتالىق كۆرۈلدى","From computer":"كومپيۇتېردىن","Full size image":"ئەسلى چوڭلۇقتىكى رەسىم",Image:"سۈرەت","Image from computer":"كومپيۇتېردىن سۈرەت تاللاڭ","Image resize list":"سۈرەت چوڭلۇقىنى تەڭشەش تىزىمى","Image toolbar":"سۈرەت قورال بالداق","Image upload complete":"سۈرەت يۈكلەش تامام","Image via URL":"تور ئادرېسىدىن كەلگەن سۈرەت","image widget":"رەسىمچىك","In line":"قۇردا","Insert image":"رەسىم قىستۇرۇش","Insert image via URL":"سۈرەتنى تور ئادرېسىدىن قىستۇر","Insert via URL":"تور ئادرېسىدىن قىستۇر","Left aligned image":"سولغا توغۇرلانغان رەسىم",Original:"ئەسلى","Replace from computer":"كومپيۇتېردىن ئالماشتۇر","Replace image":"سۈرەت ئالماشتۇر","Replace image from computer":"سۈرەتنى كومپيۇتېردىن ئالماشتۇرىدۇ","Resize image":"سۈرەت چوڭلۇقىنى تەڭشە","Resize image (in %0)":"سۈرەت چوڭلۇقىنى تەڭشە (بىرلىكى %0)","Resize image to %0":"سۈرەت چوڭلۇقىنى %0 كە تەڭشە","Resize image to the original size":"سۈرەت چوڭلۇقىنى ئەسلى چوڭلۇقىغا تەڭشەيدۇ","Right aligned image":"ئوڭغا توغۇرلانغان رەسىم","Side image":"يان رەسىم","Text alternative":"تېكىست ئاملاشتۇرۇش","The value must not be empty.":"قىممىتى بوش قالدۇرۇلمايدۇ.","The value should be a plain number.":"مەزكۇر قىممەت سان بولۇشى كېرەك.","Update image URL":"سۈرەت تور ئادرېسىنى يېڭىلا","Upload failed":"چىقىرىش مەغلۇپ بولدى","Upload from computer":"كومپيۇتېردىن يۈكلە","Upload image from computer":"سۈرەتنى كومپيۇتېردىن يۈكلە","Uploading image":"سۈرەت يۈكلەۋاتىدۇ","Via URL":"تور ئادرېسى ئارقىلىق","Wrap text":"تېكىست چۆرىدەت","You have no image upload permissions.":"سۈرەت يۈكلەش ئىجازىتىڭىز يوق."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -61,10 +61,12 @@ export default class InsertImageCommand extends Command {
|
|
|
61
61
|
*
|
|
62
62
|
* @fires execute
|
|
63
63
|
* @param options Options for the executed command.
|
|
64
|
+
* @param options.imageType The type of the image to insert. If not specified, the type will be determined automatically.
|
|
64
65
|
* @param options.source The image source or an array of image sources to insert.
|
|
65
66
|
* See the documentation of the command to learn more about accepted formats.
|
|
66
67
|
*/
|
|
67
68
|
execute(options: {
|
|
68
69
|
source: ArrayOrItem<string | Record<string, unknown>>;
|
|
70
|
+
imageType?: 'imageBlock' | 'imageInline' | null;
|
|
69
71
|
}): void;
|
|
70
72
|
}
|
package/dist/index.js
CHANGED
|
@@ -1306,6 +1306,7 @@ const IMAGE_URL_REGEXP = new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@
|
|
|
1306
1306
|
*
|
|
1307
1307
|
* @fires execute
|
|
1308
1308
|
* @param options Options for the executed command.
|
|
1309
|
+
* @param options.imageType The type of the image to insert. If not specified, the type will be determined automatically.
|
|
1309
1310
|
* @param options.source The image source or an array of image sources to insert.
|
|
1310
1311
|
* See the documentation of the command to learn more about accepted formats.
|
|
1311
1312
|
*/ execute(options) {
|
|
@@ -1335,12 +1336,12 @@ const IMAGE_URL_REGEXP = new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@
|
|
|
1335
1336
|
imageUtils.insertImage({
|
|
1336
1337
|
...sourceDefinition,
|
|
1337
1338
|
...selectionAttributes
|
|
1338
|
-
}, position);
|
|
1339
|
+
}, position, options.imageType);
|
|
1339
1340
|
} else {
|
|
1340
1341
|
imageUtils.insertImage({
|
|
1341
1342
|
...sourceDefinition,
|
|
1342
1343
|
...selectionAttributes
|
|
1343
|
-
});
|
|
1344
|
+
}, null, options.imageType);
|
|
1344
1345
|
}
|
|
1345
1346
|
});
|
|
1346
1347
|
}
|