use self hosted packages
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.dialog.add("easyimageAlt",function(b){return{title:b.lang.easyimage.commands.altText,minWidth:200,minHeight:30,getModel:function(){var a=b.widgets.focused;return a&&"easyimage"==a.name?a:null},onOk:function(){var a=CKEDITOR.tools.trim(this.getValueOf("info","txtAlt")),c=this.getModel(b);c&&c.parts.image.setAttribute("alt",a)},onShow:function(){var a=this.getContentElement("info","txtAlt"),c=this.getModel(b);c&&a.setValue(c.parts.image.getAttribute("alt"));a.focus()},contents:[{id:"info",
|
||||
label:b.lang.easyimage.commands.altText,accessKey:"I",elements:[{type:"text",id:"txtAlt",label:b.lang.easyimage.commands.altText}]}]}});
|
||||
|
After Width: | Height: | Size: 155 B |
|
After Width: | Height: | Size: 152 B |
|
After Width: | Height: | Size: 149 B |
|
After Width: | Height: | Size: 545 B |
|
After Width: | Height: | Size: 147 B |
|
After Width: | Height: | Size: 149 B |
|
After Width: | Height: | Size: 498 B |
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 253 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 905 B |
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","ar",{commands:{fullImage:"صورة بالحجم الكامل",sideImage:"صورة جانبية",altText:"تغيير النص الاضافي للصورة",upload:"رفع صورة"},uploadFailed:"لم نتمكن من رفع الصورة نظراً لخطأ في شبكة الاتصال"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","az",{commands:{fullImage:"Tam Ölçülü Təsvir",sideImage:"Kənar Təsvir",altText:"Təsvirin alt-yazısını dəyiş",upload:"Təsvir Yüklə"},uploadFailed:"Təsvir şəbəkə xətası səbəbindən yüklənmədi."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","bg",{commands:{fullImage:"Пълен размер изображение",sideImage:"Странично изображение",altText:"Променете алтернативния текст на изображение",upload:"Качи изображение"},uploadFailed:"Изображението ви не можа да бъде качено поради грешка в мрежата."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","cs",{commands:{fullImage:"Obrázek v plné velikosti",sideImage:"Postranní obrázek",altText:"Změnit alternativní text obrázku",upload:"Nahrát obrázek"},uploadFailed:"Váš obrázek nemohl být nahrán"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","da",{commands:{fullImage:"Fuld billedstørrelse",sideImage:"Sidebillede",altText:"Skift billede alternativ-tekst",upload:"Upload billede"},uploadFailed:"Dit billede kunne ikke uploades på grund af en netværksfejl."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","de-ch",{commands:{fullImage:"Bild in Originalgrösse",sideImage:"Bild in Text",altText:"Alternativ-Text des Bildes ändern",upload:"Bild hochladen"},uploadFailed:"Aufgrund eines Netzwerkfehlers konnte Ihr Bild nicht hochgeladen werden."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","de",{commands:{fullImage:"Bild in Originalgröße",sideImage:"Bild in Text",altText:"Alternativ-Text des Bildes ändern",upload:"Bild hochladen"},uploadFailed:"Aufgrund eines Netzwerkfehlers konnte Ihr Bild nicht hochgeladen werden. "});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","en-au",{commands:{fullImage:"Full Size Image",sideImage:"Side Image",altText:"Change image alternative text",upload:"Upload Image"},uploadFailed:"Your image could not be uploaded due to a network error."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","en",{commands:{fullImage:"Full Size Image",sideImage:"Side Image",altText:"Change image alternative text",upload:"Upload Image"},uploadFailed:"Your image could not be uploaded due to a network error."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","et",{commands:{fullImage:"Täissuuruses pilt",sideImage:"Pilt külje peal",altText:"Pildi asendusteksti muutmine",upload:"Laadi pilt üles"},uploadFailed:"Pilti ei õnnestunud võrgu vea tõttu üles laadida."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","fa",{commands:{fullImage:"تصویر کامل",sideImage:"تصویر جانبی",altText:"تغییر متن جایگزین تصویر",upload:"آپلود تصویر"},uploadFailed:"به علت خطای شبکه، تصویر شما نمیتواند آپلود شود."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","fr",{commands:{fullImage:"Image taille complète",sideImage:"Image latérale",altText:"Modifier le texte de remplacement de l'image",upload:"Télécharger l'image"},uploadFailed:"Votre image n'a pas pu être téléchargée à cause d'un problème réseau"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","gl",{commands:{fullImage:"Imaxe de tamaño completo",sideImage:"Imaxe lateral",altText:"Cambiar o texto alternativo da imaxe",upload:"Enviar imaxe"},uploadFailed:"Non foi posíbel enviar a imaxe por mor dun erro da rede."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","hr",{commands:{fullImage:"Slika u punoj veličini",sideImage:"Bočna slika",altText:"Promijeni alternativni tekst slike",upload:"Upload Image"},uploadFailed:"Vaša slika nije mogla biti poslana uslijed greške u mreži."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","hu",{commands:{fullImage:"Teljes méretű kép",sideImage:"Oldalsó kép",altText:"Alternatív szöveg változtatása",upload:"Fotó feltöltése"},uploadFailed:"A képet nem lehet feltölteni hálózati hiba miatt."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","it",{commands:{fullImage:"Immagine a dimensione intera",sideImage:"Immagine laterale",altText:"Cambia testo alternativo dell'immagine",upload:"Carica immagine"},uploadFailed:"L'immagine non può essere caricata a causa di un errore di rete."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","ku",{commands:{fullImage:"پڕ بە پڕی وێنەکە",sideImage:"لای وێنەکە",altText:"گۆڕینی جێگرەوەی تێکستی وێنەکە",upload:"بارکردنی وێنە"},uploadFailed:"وێنەکەت ناتوانرێت بارکرێت بەهۆی هەڵەی پەیوەندیکردن بەتۆڕی نێت. "});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","lv",{commands:{fullImage:"Pilna izmēra attēls",sideImage:"Sānu bilde",altText:"Nomainīt attēla alternatīvo tekstu",upload:"Ielādēt attēlu"},uploadFailed:"Tīkla problēmu dēļ nevarēja ielādēt attēlu."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","nb",{commands:{fullImage:"Bilde i full bredde",sideImage:"Sidebilde",altText:"Endre alternativ tekst for bilde",upload:"Last opp bilde"},uploadFailed:"Bildet ditt kunne ikke lastes opp på grunn av en nettverksfeil."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","nl",{commands:{fullImage:"Afbeelding op volledige grootte",sideImage:"Side Image",altText:"Change image alternative text",upload:"Afbeelding uploaden"},uploadFailed:"De afbeelding kon niet worden opgeladen door een netwerkfout."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","no",{commands:{fullImage:"Full Size Image",sideImage:"Side Image",altText:"Change image alternative text",upload:"Last opp bilde"},uploadFailed:"Bildet ble ikke lastet opp på grunn av en nettverksfeil."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","pl",{commands:{fullImage:"Obrazek w pełnym rozmiarze",sideImage:"Obrazek boczny",altText:"Zmień tekst alternatywny obrazka",upload:"Prześlij obrazek"},uploadFailed:"Obrazek nie mógł zostać przesłany z powodu błędu połączenia sieciowego."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","pt-br",{commands:{fullImage:"Imagem em tamanho real",sideImage:"Imagem lateral",altText:"Alterar o texto alternativo da imagem",upload:"Enviar Imagem"},uploadFailed:"Não foi possível enviar sua imagem devido a um erro de rede."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","pt",{commands:{fullImage:"Imagem de tamanho total",sideImage:"Side Image",altText:"Change image alternative text",upload:"Carregar imagem"},uploadFailed:"Your image could not be uploaded due to a network error."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","ro",{commands:{fullImage:"Imagine mărime întreagă",sideImage:"Imagine laterală",altText:"Modificați textul alternativ al imaginii",upload:"Upload Image"},uploadFailed:"Imaginea dumneavoastră se poate să nu se fi încărcat datorită unei erori de rețea."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","ru",{commands:{fullImage:"Изображение во всю ширину",sideImage:"Изображение сбоку",altText:"Изменить альтернативный текст",upload:"Загрузить изображение"},uploadFailed:"Ваше изображение не может быть загружено из-за сетевой ошибки"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","sk",{commands:{fullImage:"Obrázok na celú šírku",sideImage:"Bočný obrázok",altText:"Zmeniť alternatívny text obrázka",upload:"Nahrať obrázok"},uploadFailed:"Váš obrázok sa nepodarilo nahrať pre chybu siete."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","sq",{commands:{fullImage:"Madhësia e plotë e fotos",sideImage:"Foto anësore",altText:"Ndrysho tekstin zgjedhorë të fotos",upload:"Ngarko Foto"},uploadFailed:"Fotoja juaj nuk mundej të ngarkohej për shkak të problemeve me rrjetin."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","sr-latn",{commands:{fullImage:"Slika u punoj veličini",sideImage:"Slika sa strane",altText:"Izmena alternativnog teksta",upload:"Postavljanje fotografije"},uploadFailed:"Slika se ne može postaviti zbog greške u mreži"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","sr",{commands:{fullImage:"Слика у пуној величини",sideImage:"Слика састране",altText:"Измена алтернативниг текста",upload:"Постављање фотографије"},uploadFailed:"Слика се не може поставити због грешке у мрежи"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","sv",{commands:{fullImage:"Hel bild",sideImage:"Sidobild",altText:"Ändra bildens alternativa text",upload:"Ladda upp bild"},uploadFailed:"Din bild kunde inte laddas upp p.g.a. ett nätverksfel."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","tr",{commands:{fullImage:"Tam Boy Resim",sideImage:"Yan Resim",altText:"Resmin alt yazısını değiştir",upload:"Resim Yükle"},uploadFailed:"Ağ bağlantısı sorunu yüzünden resminiz yüklenemedi."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","tt",{commands:{fullImage:"Full Size Image",sideImage:"Side Image",altText:"Change image alternative text",upload:"Рәсем йөкләргә"},uploadFailed:"Your image could not be uploaded due to a network error."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","uk",{commands:{fullImage:"Зображення в повному розмірі",sideImage:"Зображення збоку",altText:"Змінити альтернативний текст зображення",upload:"Завантажити зображення"},uploadFailed:"Ваше зображення не може бути завантажено через помилку мережі."});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","zh-cn",{commands:{fullImage:"全宽显示",sideImage:"侧边显示",altText:"更改图片代换文字",upload:"上传图片"},uploadFailed:"由于网络错误,您的图片无法上传。"});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
CKEDITOR.plugins.setLang("easyimage","zh",{commands:{fullImage:"全尺寸圖片",sideImage:"側邊圖片",altText:"變更圖片替代文字",upload:"上傳圖片"},uploadFailed:"因網路錯誤導致圖片上傳失敗"});
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
(function(){function g(a){return CKEDITOR.tools.capitalize(a,!0)}function p(a,c){function b(a){return function(b,c){var e=b.widgets.focused,h=CKEDITOR.TRISTATE_DISABLED;e&&"easyimage"===e.name&&(h=a&&a.call(this,e,b,c)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);this.setState(h)}}function f(a,c,d,e){d.type="widget";d.widget="easyimage";d.group=d.group||"easyimage";d.element="figure";c=new CKEDITOR.style(d);a.filter.allow(c);c=new CKEDITOR.styleCommand(c);c.contextSensitive=!0;c.refresh=b(function(a,
|
||||
b,c){return this.style.checkActive(c,b)});a.addCommand(e,c);c=a.getCommand(e);c.enable=function(){};c.refresh(a,a.elementPath());return c}a.addCommand("easyimageAlt",new CKEDITOR.dialogCommand("easyimageAlt",{startDisabled:!0,contextSensitive:!0,refresh:b()}));(function(b){function c(a,b){var d=a.match(/^easyimage(.+)$/);if(d){var f=(d[1][0]||"").toLowerCase()+d[1].substr(1);if(d[1]in b)return d[1];if(f in b)return f}return null}a.on("afterCommandExec",function(e){c(e.data.name,b)&&(a.forceNextSelectionCheck(),
|
||||
a.selectionChange(!0))});a.on("beforeCommandExec",function(e){c(e.data.name,b)&&e.data.command.style.checkActive(e.editor.elementPath(),a)&&(e.cancel(),a.focus())});for(var d in b)f(a,d,b[d],"easyimage"+g(d))})(c)}function q(a){var c=a.config.easyimage_toolbar;a.plugins.contextmenu&&(c.split&&(c=c.split(",")),a.addMenuGroup("easyimage"),CKEDITOR.tools.array.forEach(c,function(b){b=a.ui.items[b];a.addMenuItem(b.name,{label:b.label,command:b.command,group:"easyimage"})}))}function r(a){var c=a.sender.editor,
|
||||
b=c.config.easyimage_toolbar;b.split&&(b=b.split(","));CKEDITOR.tools.array.forEach(b,function(b){b=c.ui.items[b];a.data[b.name]=c.getCommand(b.command).state})}function t(a,c){var b=a.config,f=b.easyimage_class,b={name:"easyimage",allowedContent:{figure:{classes:b.easyimage_sideClass},img:{attributes:"!src,srcset,alt,width,sizes"}},requiredContent:"figure; img[!src]",styleableElements:"figure",supportedTypes:new RegExp("image/("+l.join("|")+")","i"),loaderType:CKEDITOR.plugins.cloudservices.cloudServicesLoader,
|
||||
progressReporterType:CKEDITOR.plugins.imagebase.progressBar,upcasts:{figure:function(a){if((!f||a.hasClass(f))&&1===a.find("img",!0).length)return a}},init:function(){function b(a,c){var d=a.$;if(d.complete&&d.naturalWidth)return c(d.naturalWidth);a.once("load",function(){if(!d.naturalWidth)return d.src=d.src,b(a,c);c(d.naturalWidth)})}var c=this.parts.image,d=c&&c.$.complete&&!c.$.naturalWidth;if(c&&!c.$.complete||d)d&&(c.$.src=c.$.src),b(c,function(){a._.easyImageToolbarContext.toolbar.reposition()});
|
||||
c=this.element.data("cke-upload-id");"undefined"!==typeof c&&(this.setData("uploadId",c),this.element.data("cke-upload-id",!1));this.on("contextMenu",r);a.config.easyimage_class&&this.addClass(a.config.easyimage_class);this.on("uploadStarted",function(){var a=this;b(a.parts.image,function(b){a.parts.image.hasAttribute("width")||(a.editor.fire("lockSnapshot"),a.parts.image.setAttribute("width",b),a.editor.fire("unlockSnapshot"))})});this.on("uploadDone",function(a){a=a.data.loader.responseData.response;
|
||||
var b=CKEDITOR.plugins.easyimage._parseSrcSet(a);this.parts.image.setAttributes({"data-cke-saved-src":a["default"],src:a["default"],srcset:b,sizes:"100vw"})});this.on("uploadFailed",function(){alert(this.editor.lang.easyimage.uploadFailed)});this._loadDefaultStyle()},_loadDefaultStyle:function(){var b=!1,f=a.config.easyimage_defaultStyle,d;for(d in c){var e=a.getCommand("easyimage"+g(d));!b&&e&&e.style&&-1!==CKEDITOR.tools.array.indexOf(e.style.group,"easyimage")&&this.checkStyleActive(e.style)&&
|
||||
(b=!0)}!b&&f&&a.getCommand("easyimage"+g(f))&&this.applyStyle(a.getCommand("easyimage"+g(f)).style)}};f&&(b.requiredContent+="(!"+f+")",b.allowedContent.figure.classes="!"+f+","+b.allowedContent.figure.classes);a.plugins.link&&(b=CKEDITOR.plugins.imagebase.addFeature(a,"link",b));b=CKEDITOR.plugins.imagebase.addFeature(a,"upload",b);b=CKEDITOR.plugins.imagebase.addFeature(a,"caption",b);CKEDITOR.plugins.imagebase.addImageWidget(a,"easyimage",b)}function u(a){var c=new RegExp("\x3cimg[^\x3e]*\\ssrc\x3d[\\'\\\"]?data:image/("+
|
||||
l.join("|")+");base64,","i");a.on("paste",function(b){if(!a.isReadOnly&&c.test(b.data.dataValue)){b=b.data;var f=document.implementation.createHTMLDocument(""),f=new CKEDITOR.dom.element(f.body),g=a.widgets.registered.easyimage,l=0,d,e,h,m;f.data("cke-editable",1);f.appendHtml(b.dataValue);e=f.find("img");for(m=0;m<e.count();m++){h=e.getItem(m);var k=(d=h.getAttribute("src"))&&"data:"==d.substring(0,5),n=null===h.data("cke-realelement");k&&n&&!h.isReadOnly(1)&&(l++,1<l&&(k=a.getSelection().getRanges(),
|
||||
k[0].enlarge(CKEDITOR.ENLARGE_ELEMENT),k[0].collapse(!1)),d.match(/image\/([a-z]+?);/i),k=g._spawnLoader(a,d,g),d=g._insertWidget(a,g,d,!1,{uploadId:k.id}),d.data("cke-upload-id",k.id),d.replace(h))}b.dataValue=f.getHtml()}})}function v(a){a.ui.addButton("EasyImageUpload",{label:a.lang.easyimage.commands.upload,command:"easyimageUpload",toolbar:"insert,1"});a.addCommand("easyimageUpload",{exec:function(){var c=CKEDITOR.dom.element.createFromHtml('\x3cinput type\x3d"file" accept\x3d"image/*" multiple\x3d"multiple"\x3e');
|
||||
c.once("change",function(b){b=b.data.getTarget();b.$.files.length&&a.fire("paste",{method:"paste",dataValue:"",dataTransfer:new CKEDITOR.plugins.clipboard.dataTransfer({files:b.$.files})})});c.$.click()}})}var n=!1,l=["jpeg","png","gif","bmp"];CKEDITOR.plugins.easyimage={_parseSrcSet:function(a){var c=[],b;for(b in a)"default"!==b&&c.push(a[b]+" "+b+"w");return c.join(", ")}};CKEDITOR.plugins.add("easyimage",{requires:"imagebase,balloontoolbar,button,dialog,cloudservices",lang:"ar,az,bg,cs,da,de,de-ch,en,en-au,et,fa,fr,gl,hr,hu,it,ku,lv,nb,nl,no,pl,pt,pt-br,ro,ru,sk,sq,sr,sr-latn,sv,tr,tt,uk,zh,zh-cn",
|
||||
icons:"easyimagefull,easyimageside,easyimagealt,easyimagealignleft,easyimagealigncenter,easyimagealignright,easyimageupload",hidpi:!0,onLoad:function(){CKEDITOR.dialog.add("easyimageAlt",this.path+"dialogs/easyimagealt.js")},isSupportedEnvironment:function(){return!CKEDITOR.env.ie||11<=CKEDITOR.env.version},init:function(a){this.isSupportedEnvironment()&&(n||(CKEDITOR.document.appendStyleSheet(this.path+"styles/easyimage.css"),n=!0),a.addContentsCss&&a.addContentsCss(this.path+"styles/easyimage.css"))},
|
||||
afterInit:function(a){if(this.isSupportedEnvironment()){var c;c=CKEDITOR.tools.object.merge({full:{attributes:{"class":"easyimage-full"},label:a.lang.easyimage.commands.fullImage},side:{attributes:{"class":"easyimage-side"},label:a.lang.easyimage.commands.sideImage},alignLeft:{attributes:{"class":"easyimage-align-left"},label:a.lang.common.alignLeft},alignCenter:{attributes:{"class":"easyimage-align-center"},label:a.lang.common.alignCenter},alignRight:{attributes:{"class":"easyimage-align-right"},
|
||||
label:a.lang.common.alignRight}},a.config.easyimage_styles);t(a,c);u(a);p(a,c);a.ui.addButton("EasyImageAlt",{label:a.lang.easyimage.commands.altText,command:"easyimageAlt",toolbar:"easyimage,3"});for(var b in c)a.ui.addButton("EasyImage"+g(b),{label:c[b].label,command:"easyimage"+g(b),toolbar:"easyimage,99",icon:c[b].icon,iconHiDpi:c[b].iconHiDpi});q(a);c=a.config.easyimage_toolbar;a._.easyImageToolbarContext=a.balloonToolbars.create({buttons:c.join?c.join(","):c,widgets:["easyimage"]});v(a)}}});
|
||||
CKEDITOR.config.easyimage_class="easyimage";CKEDITOR.config.easyimage_styles={};CKEDITOR.config.easyimage_defaultStyle="full";CKEDITOR.config.easyimage_toolbar=["EasyImageFull","EasyImageSide","EasyImageAlt"]})();
|
||||
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
|
||||
.easyimage, .cke_widget_wrapper_easyimage {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: 0px;
|
||||
display: block;
|
||||
padding: 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/*
|
||||
The outline is not a part of the element's dimensions. A border needs to be used as an outline to align the linked image with a caption.
|
||||
*/
|
||||
.easyimage a > img {
|
||||
outline: none;
|
||||
border: 1px solid #0782C1;
|
||||
box-sizing: border-box;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper_easyimage figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.easyimage img, .cke_widget_uploadeasyimage img {
|
||||
display: block;
|
||||
height: auto;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper_easyimage-side, :not(.cke_widget_wrapper_easyimage):not(.cke_widget_wrapper_easyimage-side) > .easyimage-side,
|
||||
.cke_widget_wrapper_easyimage-align-right, :not(.cke_widget_wrapper_easyimage):not(.cke_widget_wrapper_easyimage-align-right) > .easyimage-align-right {
|
||||
/*
|
||||
The :not() selector will be used for Easy Image content ouside of the editor, for example: when the editor was destroyed.
|
||||
See https://github.com/ckeditor/ckeditor4/pull/1150#discussion_r150415261 for more details.
|
||||
*/
|
||||
float: right;
|
||||
max-width: 50%;
|
||||
/*
|
||||
In case of placement inside the parent container like a table cell, 'min-width' is needed to prevent the widget from having
|
||||
tiny sizes. The `em` unit is used so it works well and has proper proportions to the textual content around (#1553).
|
||||
*/
|
||||
min-width: 10em;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
/*
|
||||
Overwrite 'max-width: 50%' with 'max-width: 50vw' to prevent the native Chrome bug:
|
||||
https://bugs.chromium.org/p/chromium/issues/detail?id=803045 (#1550).
|
||||
*/
|
||||
body.cke_editable > .cke_widget_wrapper_easyimage-side {
|
||||
max-width: 50vw;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper_easyimage-align-left, :not(.cke_widget_wrapper_easyimage):not(.cke_widget_wrapper_easyimage-align-left) > .easyimage-align-left {
|
||||
float: left;
|
||||
max-width: 50%;
|
||||
min-width: 10em;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper_easyimage-align-center, :not(.cke_widget_wrapper_easyimage):not(.cke_widget_wrapper_easyimage-align-center) > .easyimage-align-center {
|
||||
margin: 0 auto;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
.easyimage .cke_widget_editable {
|
||||
background-color: #f7f7f7;
|
||||
/* Add border so when caption is focused, blue border does not cause flickering. */
|
||||
border: 1px solid #f7f7f7;
|
||||
color: #333;
|
||||
padding: .8em;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper:hover .easyimage .cke_widget_editable {
|
||||
outline: 3px solid transparent;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper .easyimage .cke_widget_editable.cke_widget_editable_focused {
|
||||
background-color: #fff;
|
||||
border-color: #48a3f5;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Loaders */
|
||||
|
||||
.cke_widget_element.easyimage {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cke_loader {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.cke_loader .cke_bar {
|
||||
height: 10px;
|
||||
background: #6a9ed1;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
/* Fancy opacity effect discussed in #1533. Transition is assigned in this awkward way so that it **does not** happen for
|
||||
the initial render, otherwise it would start transitioning from opacity 1 to 0.x upon the first render. */
|
||||
|
||||
.cke_widget_wrapper_easyimage:not(.cke_widget_wrapper_uploading) figure img {
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.cke_widget_wrapper_easyimage.cke_widget_wrapper_uploading figure img {
|
||||
opacity: 0.75;
|
||||
}
|
||||