collected assets
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
CKEDITOR.dialog.add("embedBase",function(b){var c=b.lang.embedbase;return{title:c.title,minWidth:350,minHeight:50,onLoad:function(){function e(){a.setState(CKEDITOR.DIALOG_STATE_IDLE);d=null}var a=this,d=null;this.on("ok",function(f){f.data.hide=!1;f.stop();a.setState(CKEDITOR.DIALOG_STATE_BUSY);var c=a.getValueOf("info","url");d=a.widget.loadContent(c,{noNotifications:!0,callback:function(){a.widget.isReady()||b.widgets.finalizeCreation(a.widget.wrapper.getParent(!0));b.fire("saveSnapshot");a.hide();
|
||||
e()},errorCallback:function(b){a.getContentElement("info","url").select();alert(a.widget.getErrorMessage(b,c,"Given"));e()}})},null,null,15);this.on("cancel",function(a){a.data.hide&&d&&(d.cancel(),e())})},contents:[{id:"info",elements:[{type:"text",id:"url",label:b.lang.common.url,setup:function(b){this.setValue(b.data.url)},validate:function(){return!this.getDialog().widget.isUrlValid(this.getValue())?c.unsupportedUrlGiven:!0}}]}]}});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/cs.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/cs.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","cs",{pathName:"objekt média",title:"Vložení médií",button:"Vložit médium",unsupportedUrlGiven:"Zadaná URL není podporována.",unsupportedUrl:"URL {url} není podporována ",fetchingFailedGiven:"Pro zadanou adresu URL nelze získat obsah.",fetchingFailed:"Nelze získat obsah na {url}.",fetchingOne:"Získávání odpovědí oEmbed...",fetchingMany:"Získávání odpovědí oEmbed. {current} z {max} hotovo..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/da.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/da.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","da",{pathName:"media objekt",title:"Media Embed",button:"Indsæt Media Embed",unsupportedUrlGiven:"Den angivende URL er ikke undersøttet.",unsupportedUrl:"URLen {url} er ikke undersøttet af Media Embed.",fetchingFailedGiven:"Kunne ikke hente indholdet fra den angivende URL.",fetchingFailed:"Kunne ikke hente indholdet fra {url}.",fetchingOne:"Henter oEmbed-svar",fetchingMany:"Henter oEmbed-svar, {current} af {max} færdige..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/de.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/de.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","de",{pathName:"Medienobjekt",title:"Media Embed",button:"Insert Media Embed",unsupportedUrlGiven:"Die angegebene URL wird nicht unterstützt.",unsupportedUrl:"The URL {url} is not supported by Media Embed.",fetchingFailedGiven:"Abrufen des Inhalts für die angegebene URL ist fehlgeschlagen.",fetchingFailed:"Abrufen des Inhalts für {url} ist fehlgeschlagen.",fetchingOne:"Fetching oEmbed response...",fetchingMany:"Fetching oEmbed responses, {current} of {max} done..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/en.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/en.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","en",{pathName:"media object",title:"Media Embed",button:"Insert Media Embed",unsupportedUrlGiven:"The specified URL is not supported.",unsupportedUrl:"The URL {url} is not supported by Media Embed.",fetchingFailedGiven:"Failed to fetch content for the given URL.",fetchingFailed:"Failed to fetch content for {url}.",fetchingOne:"Fetching oEmbed response...",fetchingMany:"Fetching oEmbed responses, {current} of {max} done..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/eo.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/eo.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","eo",{pathName:"Aŭdvidea objekto",title:"Media Embed",button:"Insert Media Embed",unsupportedUrlGiven:"The specified URL is not supported.",unsupportedUrl:"The URL {url} is not supported by Media Embed.",fetchingFailedGiven:"Failed to fetch content for the given URL.",fetchingFailed:"Failed to fetch content for {url}.",fetchingOne:"Fetching oEmbed response...",fetchingMany:"Fetching oEmbed responses, {current} of {max} done..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/fr.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/fr.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","fr",{pathName:"objet média",title:"Média Intégré",button:"Insérer le média intégré",unsupportedUrlGiven:"L'URL spécifiée n'est pas supportée.",unsupportedUrl:"L'URL {url} n'est pas supportée par Média Intégré",fetchingFailedGiven:"Échec de la récupération du contenu de l'URL donnée.",fetchingFailed:"Échec de la récupération du contenu pour {url}.",fetchingOne:"Récupération de la réponse oEmbed...",fetchingMany:"Récupération des réponse oEmbed, {current} sur {max} effectué..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/gl.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/gl.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","gl",{pathName:"obxecto multimedia",title:"Multimedia integrado",button:"Inserir un multimedia integrado",unsupportedUrlGiven:"O URL especificado non está admitido.",unsupportedUrl:"O URL {url} non está admitido polo multimedia integrado.",fetchingFailedGiven:"Non foi posíbel obter o contido do URL indicado.",fetchingFailed:"Non foi posíbel obter o contido der {url}.",fetchingOne:"Obtendo a resposta oEmbed...",fetchingMany:"Obtendo as respostas oEmbed, feito {current} de {max}..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/it.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/it.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","it",{pathName:"oggetto multimediale",title:"Media incorporato",button:"Inserisci media incorporato",unsupportedUrlGiven:"L'URL specificato non è supportato.",unsupportedUrl:"L'URL {url} non è supportato da Media incorporato.",fetchingFailedGiven:"Non è stato possibile recuperareil contenuto per l'URL specificato.",fetchingFailed:"Non è stato possibile recuperare il contenuto per {url}.",fetchingOne:"Recupero della risposta oEmbed...",fetchingMany:"Recupero delle risposta oEmbed, {current} di {max} completati..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ko.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ko.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","ko",{pathName:"미디어 오브젝트",title:"미디어 임베드",button:"미디어 임베드 삽입",unsupportedUrlGiven:"지원하지 않는 주소 형식입니다.",unsupportedUrl:"입력하신 주소 {url}은 지원되지 않는 형식입니다.",fetchingFailedGiven:"입력하신 주소에서 내용을 불러올 수 없습니다.",fetchingFailed:"입력하신 주소 {url}에서 내용을 불러올 수 없습니다.",fetchingOne:"oEmbed 응답을 가져오는 중...",fetchingMany:"총 {max} 개 중{current} 번째 oEmbed 응답을 가져오는 중..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ku.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ku.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","ku",{pathName:"ڕاگەیاندنی بەرکار",title:"خستنەناوی ڕاگەیاندن",button:"خستنەناوی ڕاگەیاندن",unsupportedUrlGiven:"بەستەری نیشانکراو پشتیوان نەکراوە.",unsupportedUrl:"بەستەری {url} پشتیواننەککراوە لەلایەن خستنەناوی ڕاگەیاندن.",fetchingFailedGiven:"سەرکەوتوونەبوو لە هێنانی ناوەڕۆکی بەستەری دراو",fetchingFailed:"سەرکەوتوونەبوو لە هێنانەی ناوەڕۆکی ئەم بەستەرە {url}.",fetchingOne:"لە هەوڵی وەڵامی خستنەناوە",fetchingMany:"لە هەوڵی هێنانی خستنەناوە, {current} لە {max} کۆتایهاتووە..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/nb.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/nb.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","nb",{pathName:"mediaobjekt",title:"Media-innbygging",button:"Sett inn mediaobjekt",unsupportedUrlGiven:"Den oppgitte URL-en er ikke støttet.",unsupportedUrl:"URL-en {url} er ikke støttet av Media-innbygging.",fetchingFailedGiven:"Kunne ikke hente innhold for den oppgitte URL-en.",fetchingFailed:"Kunne ikke hente innhold for {url}.",fetchingOne:"Henter oEmbed-svar...",fetchingMany:"Henter oEmbed-svar, {current} av {max} fullført..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/nl.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/nl.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","nl",{pathName:"media object",title:"Mediareferentie",button:"Mediareferentie invoegen",unsupportedUrlGiven:"De opgegeven URL wordt niet ondersteund.",unsupportedUrl:"De URL {url} wordt niet ondersteund door Mediareferentie.",fetchingFailedGiven:"Kon de inhoud van de opgegeven URL niet ophalen",fetchingFailed:"Kon de inhoud van {url} niet ophalen.",fetchingOne:"Ophalen van oEmbed antwoord…",fetchingMany:"Ophalen van oEmbed antwoorden, {current} van {max} klaar…"});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/pl.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/pl.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","pl",{pathName:"obiekt multimediów",title:"Osadzenie multimediów (oEmbed)",button:"Osadź obiekt multimediów (oEmbed)",unsupportedUrlGiven:"Podany adres URL nie jest obsługiwany.",unsupportedUrl:"Adres URL {url} nie jest obsługiwany przez funkcjonalność osadzania multimediów.",fetchingFailedGiven:"Nie udało się pobrać zawartości dla podanego adresu URL.",fetchingFailed:"Nie udało się pobrać zawartości dla {url}.",fetchingOne:"Pobieranie odpowiedzi oEmbed...",fetchingMany:"Pobieranie odpowiedzi oEmbed, gotowe {current} z {max}..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/pt-br.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/pt-br.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","pt-br",{pathName:"objeto de mídia",title:"Incorporação de Mídia",button:"Inserir Incorporação de Mídia",unsupportedUrlGiven:"A URL especificada não é suportada.",unsupportedUrl:"A UTL {url} não é suportada pela Incorporação de Mídia.",fetchingFailedGiven:"Falha ao obter conteúdo para a URL informada.",fetchingFailed:"Falha ao obter conteúdo para {url}.",fetchingOne:"Obtendo resposta oEmbed...",fetchingMany:"Obtendo respostas oEmbed, {current} de {max} completos..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ru.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/ru.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","ru",{pathName:"media object",title:"Вставка медиаконтента",button:"Вставить медиаконтент",unsupportedUrlGiven:"Данный URL не поддерживает возможность вставки медиаконтента",unsupportedUrl:"URL {url} не поддерживает возможность вставки медиаконтента",fetchingFailedGiven:"Не удалось извлечь контент для заданного URL",fetchingFailed:"Не удалось извлечь контент для {url}",fetchingOne:"Fetching oEmbed response...",fetchingMany:"Fetching oEmbed responses, {current} of {max} done..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/sv.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/sv.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","sv",{pathName:"mediaobjekt",title:"Media Embed",button:"Insert Media Embed",unsupportedUrlGiven:"Den angivna URL:en stöds inte.",unsupportedUrl:"The URL {url} is not supported by Media Embed.",fetchingFailedGiven:"Lyckades inte hämta innehållet från den angivna URL:en.",fetchingFailed:"Lyckades inte hämta innehåll från {url}.",fetchingOne:"Hämtar oEmbed-svar...",fetchingMany:"Hämtar oEmbed-svar, {current} av {max} färdiga..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/tr.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/tr.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","tr",{pathName:"medya nesnesi",title:"Gömülmüş Medya",button:"Gömülü Medya Ekle",unsupportedUrlGiven:"Belirtmiş olduğunuz URL desteklenmiyor.",unsupportedUrl:"Belirttiğiniz URL {url} gömülü medya tarafından desteklenmiyor.",fetchingFailedGiven:"Vermiş olduğunuz URL'nin içeriği alınamadı.",fetchingFailed:"{url} içeriği alınamadı.",fetchingOne:"oEmbed cevabı alınıyor...",fetchingMany:"oEmbed cevabı alınıyor, {current} / {max} tamamlandı..."});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/zh-cn.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/zh-cn.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","zh-cn",{pathName:"媒体对象",title:"嵌入媒体",button:"插入媒体",unsupportedUrlGiven:"不支持指定的 URL。",unsupportedUrl:"嵌入媒体不支持此 URL {url}。",fetchingFailedGiven:"无法抓取此 URL 的内容。",fetchingFailed:"无法抓取 {url} 的内容。",fetchingOne:"正在抓取……",fetchingMany:"正在抓取,{max} 中的 {current} ……"});
|
||||
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/zh.js
Normal file
1
assets/ckeditor/ckeditor/plugins/embedbase/lang/zh.js
Normal file
@@ -0,0 +1 @@
|
||||
CKEDITOR.plugins.setLang("embedbase","zh",{pathName:"媒體元件",title:"內嵌媒體",button:"插入內嵌媒體",unsupportedUrlGiven:"不支援指定的 URL。",unsupportedUrl:"內嵌媒體不支援 URL {url} 。",fetchingFailedGiven:"抓取指定 URL 的內容失敗。",fetchingFailed:"抓取 {url} 的內容失敗。",fetchingOne:"正在抓取 oEmbed 回應...",fetchingMany:"正在抓取 oEmbed 回應,{max} 中的 {current} 已完成..."});
|
||||
11
assets/ckeditor/ckeditor/plugins/embedbase/plugin.js
Normal file
11
assets/ckeditor/ckeditor/plugins/embedbase/plugin.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
(function(){CKEDITOR.plugins.add("embedbase",{lang:"cs,da,de,en,eo,fr,gl,it,ko,ku,nb,nl,pl,pt-br,ru,sv,tr,zh,zh-cn",requires:"widget,notificationaggregator",onLoad:function(){CKEDITOR._.jsonpCallbacks={}},init:function(){CKEDITOR.dialog.add("embedBase",this.path+"dialogs/embedbase.js")}});var j={_attachScript:function(e,c){var d=new CKEDITOR.dom.element("script");d.setAttribute("src",e);d.on("error",c);CKEDITOR.document.getBody().append(d);return d},sendRequest:function(e,c,d,a){function b(){g&&(g.remove(),
|
||||
delete CKEDITOR._.jsonpCallbacks[h],g=null)}var i={},c=c||{},h=CKEDITOR.tools.getNextNumber(),g;c.callback="CKEDITOR._.jsonpCallbacks["+h+"]";CKEDITOR._.jsonpCallbacks[h]=function(a){setTimeout(function(){b();d(a)})};g=this._attachScript(e.output(c),function(){b();a&&a()});i.cancel=b;return i}};CKEDITOR.plugins.embedBase={createWidgetBaseDefinition:function(e){var c,d=e.lang.embedbase;return{mask:!0,template:"<div></div>",pathName:d.pathName,_cache:{},urlRegExp:/^((https?:)?\/\/|www\.)/i,init:function(){this.on("sendRequest",
|
||||
function(a){this._sendRequest(a.data)},this,null,999);this.on("dialog",function(a){a.data.widget=this},this);this.on("handleResponse",function(a){if(!a.data.html){var b=this._responseToHtml(a.data.url,a.data.response);null!==b?a.data.html=b:(a.data.errorMessage="unsupportedUrl",a.cancel())}},this,null,999)},loadContent:function(a,b){function c(e){f.response=e;d.editor.widgets.instances[d.id]?d._handleResponse(f)&&(d._cacheResponse(a,e),b.callback&&b.callback()):f.task&&f.task.done()}var b=b||{},d=
|
||||
this,e=this._getCachedResponse(a),f={noNotifications:b.noNotifications,url:a,callback:c,errorCallback:function(a){d._handleError(f,a);b.errorCallback&&b.errorCallback(a)}};if(e)setTimeout(function(){c(e)});else return b.noNotifications||(f.task=this._createTask()),this.fire("sendRequest",f),f},isUrlValid:function(a){return this.urlRegExp.test(a)&&!1!==this.fire("validateUrl",a)},getErrorMessage:function(a,b,c){(c=e.lang.embedbase[a+(c||"")])||(c=a);return(new CKEDITOR.template(c)).output({url:b||
|
||||
""})},_sendRequest:function(a){var b=this,c=j.sendRequest(this.providerUrl,{url:encodeURIComponent(a.url)},a.callback,function(){a.errorCallback("fetchingFailed")});a.cancel=function(){c.cancel();b.fire("requestCanceled",a)}},_handleResponse:function(a){var b={url:a.url,html:"",response:a.response};if(!1!==this.fire("handleResponse",b))return a.task&&a.task.done(),this._setContent(a.url,b.html),!0;a.errorCallback(b.errorMessage);return!1},_handleError:function(a,b){a.task&&(a.task.cancel(),a.noNotifications||
|
||||
e.showNotification(this.getErrorMessage(b,a.url),"warning"))},_responseToHtml:function(a,b){return"photo"==b.type?'<img src="'+CKEDITOR.tools.htmlEncodeAttr(b.url)+'" alt="'+CKEDITOR.tools.htmlEncodeAttr(b.title||"")+'" style="max-width:100%;height:auto" />':"video"==b.type||"rich"==b.type?b.html:null},_setContent:function(a,b){this.setData("url",a);this.element.setHtml(b)},_createTask:function(){if(!c||c.isFinished())c=new CKEDITOR.plugins.notificationAggregator(e,d.fetchingMany,d.fetchingOne),c.on("finished",
|
||||
function(){c.notification.hide()});return c.createTask()},_cacheResponse:function(a,b){this._cache[a]=b},_getCachedResponse:function(a){return this._cache[a]}}},_jsonp:j}})();
|
||||
Reference in New Issue
Block a user