From c63493c899de714b05b0521bb38aab60d19030ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 20 Jan 2017 00:55:51 +0100 Subject: Validation initiale --- release/plugins/a11yhelp/dialogs/a11yhelp.js | 10 + .../a11yhelp/dialogs/lang/_translationstatus.txt | 25 +++ release/plugins/a11yhelp/dialogs/lang/af.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/ar.js | 10 + release/plugins/a11yhelp/dialogs/lang/az.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/bg.js | 10 + release/plugins/a11yhelp/dialogs/lang/ca.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/cs.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/cy.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/da.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/de-ch.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/de.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/el.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/en-gb.js | 10 + release/plugins/a11yhelp/dialogs/lang/en.js | 10 + release/plugins/a11yhelp/dialogs/lang/eo.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/es.js | 13 ++ release/plugins/a11yhelp/dialogs/lang/et.js | 10 + release/plugins/a11yhelp/dialogs/lang/eu.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/fa.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/fi.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/fo.js | 10 + release/plugins/a11yhelp/dialogs/lang/fr-ca.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/fr.js | 13 ++ release/plugins/a11yhelp/dialogs/lang/gl.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/gu.js | 10 + release/plugins/a11yhelp/dialogs/lang/he.js | 10 + release/plugins/a11yhelp/dialogs/lang/hi.js | 10 + release/plugins/a11yhelp/dialogs/lang/hr.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/hu.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/id.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/it.js | 13 ++ release/plugins/a11yhelp/dialogs/lang/ja.js | 9 + release/plugins/a11yhelp/dialogs/lang/km.js | 10 + release/plugins/a11yhelp/dialogs/lang/ko.js | 10 + release/plugins/a11yhelp/dialogs/lang/ku.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/lt.js | 10 + release/plugins/a11yhelp/dialogs/lang/lv.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/mk.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/mn.js | 10 + release/plugins/a11yhelp/dialogs/lang/nb.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/nl.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/no.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/oc.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/pl.js | 13 ++ release/plugins/a11yhelp/dialogs/lang/pt-br.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/pt.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/ro.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/ru.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/si.js | 10 + release/plugins/a11yhelp/dialogs/lang/sk.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/sl.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/sq.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/sr-latn.js | 10 + release/plugins/a11yhelp/dialogs/lang/sr.js | 10 + release/plugins/a11yhelp/dialogs/lang/sv.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/th.js | 10 + release/plugins/a11yhelp/dialogs/lang/tr.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/tt.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/ug.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/uk.js | 12 ++ release/plugins/a11yhelp/dialogs/lang/vi.js | 11 ++ release/plugins/a11yhelp/dialogs/lang/zh-cn.js | 9 + release/plugins/a11yhelp/dialogs/lang/zh.js | 9 + release/plugins/clipboard/dialogs/paste.js | 12 ++ release/plugins/dialog/dialogDefinition.js | 4 + release/plugins/icons.png | Bin 0 -> 4720 bytes release/plugins/icons_hidpi.png | Bin 0 -> 14281 bytes release/plugins/iframe/dialogs/iframe.js | 10 + release/plugins/iframe/images/placeholder.png | Bin 0 -> 265 bytes release/plugins/image/dialogs/image.js | 44 +++++ release/plugins/image/images/noimage.png | Bin 0 -> 1610 bytes release/plugins/link/dialogs/anchor.js | 7 + release/plugins/link/dialogs/link.js | 28 +++ release/plugins/link/images/anchor.png | Bin 0 -> 752 bytes release/plugins/link/images/hidpi/anchor.png | Bin 0 -> 1109 bytes release/plugins/liststyle/dialogs/liststyle.js | 10 + .../plugins/magicline/images/hidpi/icon-rtl.png | Bin 0 -> 176 bytes release/plugins/magicline/images/hidpi/icon.png | Bin 0 -> 199 bytes release/plugins/magicline/images/icon-rtl.png | Bin 0 -> 138 bytes release/plugins/magicline/images/icon.png | Bin 0 -> 133 bytes release/plugins/oembed/LICENSE.md | 21 +++ release/plugins/oembed/README.md | 201 +++++++++++++++++++++ release/plugins/oembed/libs/jquery.oembed.min.js | 71 ++++++++ release/plugins/widget/images/handle.png | Bin 0 -> 220 bytes 85 files changed, 1120 insertions(+) create mode 100644 release/plugins/a11yhelp/dialogs/a11yhelp.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/_translationstatus.txt create mode 100644 release/plugins/a11yhelp/dialogs/lang/af.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ar.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/az.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/bg.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ca.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/cs.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/cy.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/da.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/de-ch.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/de.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/el.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/en-gb.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/en.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/eo.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/es.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/et.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/eu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fa.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fo.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fr-ca.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/fr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/gl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/gu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/he.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/hu.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/id.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/it.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ja.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/km.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ko.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ku.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/lt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/lv.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/mk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/mn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/nb.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/nl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/no.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/oc.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pt-br.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/pt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ro.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ru.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/si.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sl.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sq.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sr-latn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/sv.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/th.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/tr.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/tt.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/ug.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/uk.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/vi.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/zh-cn.js create mode 100644 release/plugins/a11yhelp/dialogs/lang/zh.js create mode 100644 release/plugins/clipboard/dialogs/paste.js create mode 100644 release/plugins/dialog/dialogDefinition.js create mode 100644 release/plugins/icons.png create mode 100644 release/plugins/icons_hidpi.png create mode 100644 release/plugins/iframe/dialogs/iframe.js create mode 100644 release/plugins/iframe/images/placeholder.png create mode 100644 release/plugins/image/dialogs/image.js create mode 100644 release/plugins/image/images/noimage.png create mode 100644 release/plugins/link/dialogs/anchor.js create mode 100644 release/plugins/link/dialogs/link.js create mode 100644 release/plugins/link/images/anchor.png create mode 100644 release/plugins/link/images/hidpi/anchor.png create mode 100644 release/plugins/liststyle/dialogs/liststyle.js create mode 100644 release/plugins/magicline/images/hidpi/icon-rtl.png create mode 100644 release/plugins/magicline/images/hidpi/icon.png create mode 100644 release/plugins/magicline/images/icon-rtl.png create mode 100644 release/plugins/magicline/images/icon.png create mode 100644 release/plugins/oembed/LICENSE.md create mode 100644 release/plugins/oembed/README.md create mode 100644 release/plugins/oembed/libs/jquery.oembed.min.js create mode 100644 release/plugins/widget/images/handle.png (limited to 'release/plugins') diff --git a/release/plugins/a11yhelp/dialogs/a11yhelp.js b/release/plugins/a11yhelp/dialogs/a11yhelp.js new file mode 100644 index 0000000..6c268ca --- /dev/null +++ b/release/plugins/a11yhelp/dialogs/a11yhelp.js @@ -0,0 +1,10 @@ +/* + Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add("a11yHelp",function(h){var a=h.lang.a11yhelp,b=h.lang.common.keyboard,n=CKEDITOR.tools.getNextId(),e={8:b[8],9:a.tab,13:b[13],16:b[16],17:b[17],18:b[18],19:a.pause,20:a.capslock,27:a.escape,33:a.pageUp,34:a.pageDown,35:b[35],36:b[36],37:a.leftArrow,38:a.upArrow,39:a.rightArrow,40:a.downArrow,45:a.insert,46:b[46],91:a.leftWindowKey,92:a.rightWindowKey,93:a.selectKey,96:a.numpad0,97:a.numpad1,98:a.numpad2,99:a.numpad3,100:a.numpad4,101:a.numpad5,102:a.numpad6,103:a.numpad7,104:a.numpad8, +105:a.numpad9,106:a.multiply,107:a.add,109:a.subtract,110:a.decimalPoint,111:a.divide,112:a.f1,113:a.f2,114:a.f3,115:a.f4,116:a.f5,117:a.f6,118:a.f7,119:a.f8,120:a.f9,121:a.f10,122:a.f11,123:a.f12,144:a.numLock,145:a.scrollLock,186:a.semiColon,187:a.equalSign,188:a.comma,189:a.dash,190:a.period,191:a.forwardSlash,192:a.graveAccent,219:a.openBracket,220:a.backSlash,221:a.closeBracket,222:a.singleQuote};e[CKEDITOR.ALT]=b[18];e[CKEDITOR.SHIFT]=b[16];e[CKEDITOR.CTRL]=b[17];var g=[CKEDITOR.ALT,CKEDITOR.SHIFT, +CKEDITOR.CTRL],p=/\$\{(.*?)\}/g,t=function(){var a=h.keystrokeHandler.keystrokes,b={},d;for(d in a)b[a[d]]=d;return function(a,d){var c;if(b[d]){c=b[d];for(var k,l,m=[],f=0;f=k&&(c-=l,m.push(e[l]));m.push(e[c]||String.fromCharCode(c));c=m.join("+")}else c=a;return c}}();return{title:a.title,minWidth:600,minHeight:400,contents:[{id:"info",label:h.lang.common.generalTab,expand:!0,elements:[{type:"html",id:"legends",style:"white-space:normal;",focus:function(){this.getElement().focus()}, +html:function(){for(var b='\x3cdiv class\x3d"cke_accessibility_legend" role\x3d"document" aria-labelledby\x3d"'+n+'_arialbl" tabIndex\x3d"-1"\x3e%1\x3c/div\x3e\x3cspan id\x3d"'+n+'_arialbl" class\x3d"cke_voice_label"\x3e'+a.contents+" \x3c/span\x3e",e=[],d=a.legend,h=d.length,g=0;gCKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){a=a.data;var b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+ +9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement));b.getWindow().getFrame().removeCustomData("pendingFocus")&&g.focus()}var h=c.lang.clipboard,e=CKEDITOR.plugins.clipboard,f;c.on("pasteDialogCommit",function(a){a.data&&c.fire("paste",{type:"auto",dataValue:a.data.dataValue,method:"paste",dataTransfer:a.data.dataTransfer||e.initPasteDataTransfer()})},null,null,1E3);return{title:h.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?370: +350,minHeight:CKEDITOR.env.quirks?250:245,onShow:function(){this.parts.dialog.$.offsetHeight;this.setupContent();this.parts.title.setHtml(this.customTitle||h.title);this.customTitle=null},onLoad:function(){(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&"rtl"==c.lang.dir&&this.parts.contents.setStyle("overflow","hidden")},onOk:function(){this.commitContent()},contents:[{id:"general",label:c.lang.common.generalTab,elements:[{type:"html",id:"securityMsg",html:'\x3cdiv style\x3d"white-space:normal;width:340px"\x3e'+ +h.securityMsg+"\x3c/div\x3e"},{type:"html",id:"pasteMsg",html:'\x3cdiv style\x3d"white-space:normal;width:340px"\x3e'+h.pasteMsg+"\x3c/div\x3e"},{type:"html",id:"editing_area",style:"width:100%;height:100%",html:"",focus:function(){var a=this.getInputElement(),b=a.getFrameDocument().getBody();!b||b.isReadOnly()?a.setCustomData("pendingFocus",1):b.focus()},setup:function(){var a=this.getDialog(),b='\x3chtml dir\x3d"'+c.config.contentsLangDirection+'" lang\x3d"'+(c.config.contentsLanguage||c.langCode)+ +'"\x3e\x3chead\x3e\x3cstyle\x3ebody{margin:3px;height:95%;word-break:break-all;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"\x3ewindow.parent.CKEDITOR.tools.callFunction('+CKEDITOR.tools.addFunction(k,a)+",this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e",g=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+ +'})())"':"",d=CKEDITOR.dom.element.createFromHtml('\x3ciframe class\x3d"cke_pasteframe" frameborder\x3d"0" allowTransparency\x3d"true" src\x3d"'+g+'" aria-label\x3d"'+h.pasteArea+'" aria-describedby\x3d"'+a.getContentElement("general","pasteMsg").domId+'"\x3e\x3c/iframe\x3e');f=null;d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&k.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();a.setHtml(""); +a.append(d);if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){var e=CKEDITOR.dom.element.createFromHtml('\x3cspan tabindex\x3d"-1" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3c/span\x3e');e.on("focus",function(){setTimeout(function(){d.$.contentWindow.focus()})});a.append(e);this.focus=function(){e.focus();this.fire("focus")}}this.getInputElement=function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height",d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(), +b=this.getInputElement().getFrameDocument().getBody(),c=b.getBogus(),d;c&&c.remove();d=b.getHtml();setTimeout(function(){a.fire("pasteDialogCommit",{dataValue:d,dataTransfer:f||e.initPasteDataTransfer()})},0)}}]}]}}); \ No newline at end of file diff --git a/release/plugins/dialog/dialogDefinition.js b/release/plugins/dialog/dialogDefinition.js new file mode 100644 index 0000000..5c35976 --- /dev/null +++ b/release/plugins/dialog/dialogDefinition.js @@ -0,0 +1,4 @@ +/* + Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or http://ckeditor.com/license +*/ diff --git a/release/plugins/icons.png b/release/plugins/icons.png new file mode 100644 index 0000000..d33f614 Binary files /dev/null and b/release/plugins/icons.png differ diff --git a/release/plugins/icons_hidpi.png b/release/plugins/icons_hidpi.png new file mode 100644 index 0000000..cf4f8cb Binary files /dev/null and b/release/plugins/icons_hidpi.png differ diff --git a/release/plugins/iframe/dialogs/iframe.js b/release/plugins/iframe/dialogs/iframe.js new file mode 100644 index 0000000..d431e5f --- /dev/null +++ b/release/plugins/iframe/dialogs/iframe.js @@ -0,0 +1,10 @@ +/* + Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +(function(){function c(b){var c=this instanceof CKEDITOR.ui.dialog.checkbox;b.hasAttribute(this.id)&&(b=b.getAttribute(this.id),c?this.setValue(e[this.id]["true"]==b.toLowerCase()):this.setValue(b))}function d(b){var c=""===this.getValue(),a=this instanceof CKEDITOR.ui.dialog.checkbox,d=this.getValue();c?b.removeAttribute(this.att||this.id):a?b.setAttribute(this.id,e[this.id][d]):b.setAttribute(this.att||this.id,d)}var e={scrolling:{"true":"yes","false":"no"},frameborder:{"true":"1","false":"0"}}; +CKEDITOR.dialog.add("iframe",function(b){var f=b.lang.iframe,a=b.lang.common,e=b.plugins.dialogadvtab;return{title:f.title,minWidth:350,minHeight:260,onShow:function(){this.fakeImage=this.iframeNode=null;var a=this.getSelectedElement();a&&a.data("cke-real-element-type")&&"iframe"==a.data("cke-real-element-type")&&(this.fakeImage=a,this.iframeNode=a=b.restoreRealElement(a),this.setupContent(a))},onOk:function(){var a;a=this.fakeImage?this.iframeNode:new CKEDITOR.dom.element("iframe");var c={},d={}; +this.commitContent(a,c,d);a=b.createFakeElement(a,"cke_iframe","iframe",!0);a.setAttributes(d);a.setStyles(c);this.fakeImage?(a.replace(this.fakeImage),b.getSelection().selectElement(a)):b.insertElement(a)},contents:[{id:"info",label:a.generalTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{id:"src",type:"text",label:a.url,required:!0,validate:CKEDITOR.dialog.validate.notEmpty(f.noUrl),setup:c,commit:d}]},{type:"hbox",children:[{id:"width",type:"text",requiredContent:"iframe[width]", +style:"width:100%",labelLayout:"vertical",label:a.width,validate:CKEDITOR.dialog.validate.htmlLength(a.invalidHtmlLength.replace("%1",a.width)),setup:c,commit:d},{id:"height",type:"text",requiredContent:"iframe[height]",style:"width:100%",labelLayout:"vertical",label:a.height,validate:CKEDITOR.dialog.validate.htmlLength(a.invalidHtmlLength.replace("%1",a.height)),setup:c,commit:d},{id:"align",type:"select",requiredContent:"iframe[align]","default":"",items:[[a.notSet,""],[a.alignLeft,"left"],[a.alignRight, +"right"],[a.alignTop,"top"],[a.alignMiddle,"middle"],[a.alignBottom,"bottom"]],style:"width:100%",labelLayout:"vertical",label:a.align,setup:function(a,b){c.apply(this,arguments);if(b){var d=b.getAttribute("align");this.setValue(d&&d.toLowerCase()||"")}},commit:function(a,b,c){d.apply(this,arguments);this.getValue()&&(c.align=this.getValue())}}]},{type:"hbox",widths:["50%","50%"],children:[{id:"scrolling",type:"checkbox",requiredContent:"iframe[scrolling]",label:f.scrolling,setup:c,commit:d},{id:"frameborder", +type:"checkbox",requiredContent:"iframe[frameborder]",label:f.border,setup:c,commit:d}]},{type:"hbox",widths:["50%","50%"],children:[{id:"name",type:"text",requiredContent:"iframe[name]",label:a.name,setup:c,commit:d},{id:"title",type:"text",requiredContent:"iframe[title]",label:a.advisoryTitle,setup:c,commit:d}]},{id:"longdesc",type:"text",requiredContent:"iframe[longdesc]",label:a.longDescr,setup:c,commit:d}]},e&&e.createAdvancedTab(b,{id:1,classes:1,styles:1},"iframe")]}})})(); \ No newline at end of file diff --git a/release/plugins/iframe/images/placeholder.png b/release/plugins/iframe/images/placeholder.png new file mode 100644 index 0000000..4af0956 Binary files /dev/null and b/release/plugins/iframe/images/placeholder.png differ diff --git a/release/plugins/image/dialogs/image.js b/release/plugins/image/dialogs/image.js new file mode 100644 index 0000000..ad47e6b --- /dev/null +++ b/release/plugins/image/dialogs/image.js @@ -0,0 +1,44 @@ +/* + Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +(function(){var v=function(d,l){function v(){var a=arguments,b=this.getContentElement("advanced","txtdlgGenStyle");b&&b.commit.apply(b,a);this.foreach(function(b){b.commit&&"txtdlgGenStyle"!=b.id&&b.commit.apply(b,a)})}function k(a){if(!w){w=1;var b=this.getDialog(),c=b.imageElement;if(c){this.commit(1,c);a=[].concat(a);for(var d=a.length,f,g=0;gCKEDITOR.env.version&&(a["class"]="cke_anchor"),a=new CKEDITOR.style({element:"a",attributes:a}),a.type=CKEDITOR.STYLE_INLINE,c.applyStyle(a))}},onHide:function(){delete this._.selectedElement},onShow:function(){var a=c.getSelection(),b=a.getSelectedElement(),d=b&&b.data("cke-realelement"),e=d?CKEDITOR.plugins.link.tryRestoreFakeAnchor(c,b):CKEDITOR.plugins.link.getSelectedLink(c); +if(e){this._.selectedElement=e;var f=e.data("cke-saved-name");this.setValueOf("info","txtName",f||"");!d&&a.selectElement(e);b&&(this._.selectedElement=b)}this.getContentElement("info","txtName").focus()},contents:[{id:"info",label:c.lang.link.anchor.title,accessKey:"I",elements:[{type:"text",id:"txtName",label:c.lang.link.anchor.name,required:!0,validate:function(){return this.getValue()?!0:(alert(c.lang.link.anchor.errorName),!1)}}]}]}}); \ No newline at end of file diff --git a/release/plugins/link/dialogs/link.js b/release/plugins/link/dialogs/link.js new file mode 100644 index 0000000..bd837a2 --- /dev/null +++ b/release/plugins/link/dialogs/link.js @@ -0,0 +1,28 @@ +/* + Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +(function(){CKEDITOR.dialog.add("link",function(e){var m=CKEDITOR.plugins.link,p,q=function(){var a=this.getDialog(),b=a.getContentElement("target","popupFeatures"),a=a.getContentElement("target","linkTargetName"),n=this.getValue();if(b&&a)switch(b=b.getElement(),b.hide(),a.setValue(""),n){case "frame":a.setLabel(e.lang.link.targetFrameName);a.getElement().show();break;case "popup":b.show();a.setLabel(e.lang.link.targetPopupName);a.getElement().show();break;default:a.setValue(n),a.getElement().hide()}}, +h=function(a){a.target&&this.setValue(a.target[this.id]||"")},f=function(a){a.advanced&&this.setValue(a.advanced[this.id]||"")},k=function(a){a.target||(a.target={});a.target[this.id]=this.getValue()||""},l=function(a){a.advanced||(a.advanced={});a.advanced[this.id]=this.getValue()||""},c=e.lang.common,b=e.lang.link,g;return{title:b.title,minWidth:"moono-lisa"==(CKEDITOR.skinName||e.config.skin)?450:350,minHeight:240,contents:[{id:"info",label:b.info,title:b.info,elements:[{type:"text",id:"linkDisplayText", +label:b.displayText,setup:function(){this.enable();this.setValue(e.getSelection().getSelectedText());p=this.getValue()},commit:function(a){a.linkText=this.isEnabled()?this.getValue():""}},{id:"linkType",type:"select",label:b.type,"default":"url",items:[[b.toUrl,"url"],[b.toAnchor,"anchor"],[b.toEmail,"email"]],onChange:function(){var a=this.getDialog(),b=["urlOptions","anchorOptions","emailOptions"],n=this.getValue(),d=a.definition.getContents("upload"),d=d&&d.hidden;"url"==n?(e.config.linkShowTargetTab&& +a.showPage("target"),d||a.showPage("upload")):(a.hidePage("target"),d||a.hidePage("upload"));for(d=0;d=h.indexOf("?")?"?":"&"),h=h.replace("#","%23");null!==a.maxWidth&&("undefined"==typeof a.params.maxwidth||null===a.params.maxwidth)&&(a.params.maxwidth=a.maxWidth);null!==a.maxHeight&&("undefined"==typeof a.params.maxheight|| +null===a.params.maxheight)&&(a.params.maxheight=a.maxHeight);for(c in a.params)c!=a.callbackparameter&&null!==a.params[c]&&(d+="&"+escape(c)+"="+a.params[c]);return h+="format="+a.format+"&url="+escape(b)+d,"json"!=a.dataType&&(h+="&"+a.callbackparameter+"=?"),h}function n(a,l,h){b("#jqoembeddata").data(l,a.code);j.beforeEmbed.call(h,a);j.onEmbed.call(h,a);j.afterEmbed.call(h,a)}function e(a,l,h){var d,c,f;if(void 0!=b("#jqoembeddata").data(l)&&"iframe"!=h.embedtag.tag)c={code:b("#jqoembeddata").data(l)}, +n(c,l,a);else if(h.yql){c=h.yql.from||"htmlstring";var g=h.yql.url?h.yql.url(l):l;f="SELECT * FROM "+c+' WHERE url="'+g+'" and '+(/html/.test(c)?"xpath":"itemPath")+"='"+(h.yql.xpath||"/")+"'";"html"==c&&(f+=" and compat='html5'");f=b.extend({url:m()+"query.yahooapis.com/v1/public/yql",dataType:"jsonp",data:{q:f,format:"json",env:"store://datatables.org/alltableswithkeys",callback:"?"},success:function(c){var d,f,e,k,j;if(h.yql.xpath&&"//meta|//title|//link"==h.yql.xpath){d={};null==c.query.results&& +(c.query.results={meta:[]});e=0;for(k=c.query.results.meta.length;ej.maxWidth&&(r=j.maxWidth/d,s=j.maxWidth,t=e*r,e*=r,d*=r);e>j.maxHeight&&(r=j.maxHeight/e,t=j.maxHeight,s=d*r,d*=r);e=t;d=s}else e=j.maxHeight,d=j.maxWidth;d=b("<"+f+"/>").attr("src",p).attr("width",d).attr("height",e).attr("allowfullscreen", +h.embedtag.allowfullscreen||"true").attr("allowscriptaccess",h.embedtag.allowfullscreen||"always").css("max-height",j.maxHeight||"auto").css("max-width",j.maxWidth||"auto");"embed"==f&&d.attr("type",h.embedtag.type||"application/x-shockwave-flash").attr("flashvars",l.replace(h.templateRegex,c));"iframe"==f&&d.attr("scrolling",h.embedtag.scrolling||"no").attr("frameborder",h.embedtag.frameborder||"0");c={code:d};n(c,l,a)}else h.apiendpoint?(h.apikey&&(h.apiendpoint=h.apiendpoint.replace("_APIKEY_", +j.apikeys[h.name])),f=b.extend({url:l.replace(h.templateRegex,h.apiendpoint),dataType:"jsonp",success:function(c){var d=b.extend({},c);d.code=h.templateData(c);n(d,l,a)},error:function(){j.onError.call(a,l,h)}},j.ajaxOptions||{}),b.ajax(f)):(c={code:l.replace(h.templateRegex,h.template)},n(c,l,a));else c=q(h,l),f=b.extend({url:c,dataType:h.dataType||"jsonp",success:function(c){c=b.extend({},c);switch(c.type){case "file":case "photo":c.code=b.fn.oembed.getPhotoCode(l,c);break;case "link":c.code="Flickr"== +c.provider_name?b.fn.oembed.getPhotoCode(l,c):b.fn.oembed.getGenericCode(l,c);break;case "video":case "rich":c.code=b.fn.oembed.getRichCode(l,c);break;default:c.code=b.fn.oembed.getGenericCode(l,c)}n(c,l,a)},error:function(){j.onError.call(a,l,h)}},j.ajaxOptions||{}),b.ajax(f)}function p(a){if(null===a)return null;var b,e={};for(b in a)null!==b&&(e[b.toLowerCase()]=a[b]);return e}b.fn.oembed=function(a,l,h){j=b.extend(!0,b.fn.oembed.defaults,l);var d="0rz.tw 1link.in 1url.com 2.gp 2big.at 2tu.us 3.ly 307.to 4ms.me 4sq.com 4url.cc 6url.com 7.ly a.gg a.nf aa.cx abcurl.net ad.vu adf.ly adjix.com afx.cc all.fuseurl.com alturl.com amzn.to ar.gy arst.ch atu.ca azc.cc b23.ru b2l.me bacn.me bcool.bz binged.it bit.ly bizj.us bloat.me bravo.ly bsa.ly budurl.com canurl.com chilp.it chzb.gr cl.lk cl.ly clck.ru cli.gs cliccami.info clickthru.ca clop.in conta.cc cort.as cot.ag crks.me ctvr.us cutt.us dai.ly decenturl.com dfl8.me digbig.com http://digg.com/[^/]+$ disq.us dld.bz dlvr.it do.my doiop.com dopen.us easyuri.com easyurl.net eepurl.com eweri.com fa.by fav.me fb.me fbshare.me ff.im fff.to fire.to firsturl.de firsturl.net flic.kr flq.us fly2.ws fon.gs freak.to fuseurl.com fuzzy.to fwd4.me fwib.net g.ro.lt gizmo.do gl.am go.9nl.com go.ign.com go.usa.gov goo.gl goshrink.com gurl.es hex.io hiderefer.com hmm.ph href.in hsblinks.com htxt.it huff.to hulu.com hurl.me hurl.ws icanhaz.com idek.net ilix.in is.gd its.my ix.lt j.mp jijr.com kl.am klck.me korta.nu krunchd.com l9k.net lat.ms liip.to liltext.com linkbee.com linkbun.ch liurl.cn ln-s.net ln-s.ru lnk.gd lnk.ms lnkd.in lnkurl.com lru.jp lt.tl lurl.no macte.ch mash.to merky.de migre.me miniurl.com minurl.fr mke.me moby.to moourl.com mrte.ch myloc.me myurl.in n.pr nbc.co nblo.gs nn.nf not.my notlong.com nsfw.in nutshellurl.com nxy.in nyti.ms o-x.fr oc1.us om.ly omf.gd omoikane.net on.cnn.com on.mktw.net onforb.es orz.se ow.ly ping.fm pli.gs pnt.me politi.co post.ly pp.gg profile.to ptiturl.com pub.vitrue.com qlnk.net qte.me qu.tc qy.fi r.ebay.com r.im rb6.me read.bi readthis.ca reallytinyurl.com redir.ec redirects.ca redirx.com retwt.me ri.ms rickroll.it riz.gd rt.nu ru.ly rubyurl.com rurl.org rww.tw s4c.in s7y.us safe.mn sameurl.com sdut.us shar.es shink.de shorl.com short.ie short.to shortlinks.co.uk shorturl.com shout.to show.my shrinkify.com shrinkr.com shrt.fr shrt.st shrten.com shrunkin.com simurl.com slate.me smallr.com smsh.me smurl.name sn.im snipr.com snipurl.com snurl.com sp2.ro spedr.com srnk.net srs.li starturl.com stks.co su.pr surl.co.uk surl.hu t.cn t.co t.lh.com ta.gd tbd.ly tcrn.ch tgr.me tgr.ph tighturl.com tiniuri.com tiny.cc tiny.ly tiny.pl tinylink.in tinyuri.ca tinyurl.com tk. tl.gd tmi.me tnij.org tnw.to tny.com to.ly togoto.us totc.us toysr.us tpm.ly tr.im tra.kz trunc.it twhub.com twirl.at twitclicks.com twitterurl.net twitterurl.org twiturl.de twurl.cc twurl.nl u.mavrev.com u.nu u76.org ub0.cc ulu.lu updating.me ur1.ca url.az url.co.uk url.ie url360.me url4.eu urlborg.com urlbrief.com urlcover.com urlcut.com urlenco.de urli.nl urls.im urlshorteningservicefortwitter.com urlx.ie urlzen.com usat.ly use.my vb.ly vevo.ly vgn.am vl.am vm.lc w55.de wapo.st wapurl.co.uk wipi.es wp.me x.vu xr.com xrl.in xrl.us xurl.es xurl.jp y.ahoo.it yatuc.com ye.pe yep.it yfrog.com yhoo.it yiyd.com youtu.be yuarel.com z0p.de zi.ma zi.mu zipmyurl.com zud.me zurl.ws zz.gd zzang.kr ›.ws ✩.ws ✿.ws ❥.ws ➔.ws ➞.ws ➡.ws ➨.ws ➯.ws ➹.ws ➽.ws".split(" "); +return 0===b("#jqoembeddata").length&&b('').appendTo("body"),this.each(function(){var c=b(this),f=a&&(!a.indexOf("http://")||!a.indexOf("https://"))?a:c.attr("href"),g,l,m,n,o;if(h?j.onEmbed=h:j.onEmbed||(j.onEmbed=function(a){b.fn.oembed.insertCode(this,j.embedMethod,a)}),null!==f&&void 0!==f){l=0;for(m=d.length;l');l=a.parent();j.includeHandle&&b('').insertBefore(a).click(function(){var a= +encodeURIComponent(b(this).text());b(this).html("%E2%86%91"==a?"↓":"↑");b(this).parent().children().last().toggle()});l.append("
");try{e.code.clone().appendTo(l)}catch(d){l.append(e.code)}}};b.fn.oembed.getPhotoCode=function(a,b){var e,d=b.title?b.title:"",c;return d+=b.author_name?" - "+b.author_name:"",d+=b.provider_name?" - "+b.provider_name:"",b.url?e='
'+d+'
':b.thumbnail_url?(c=b.thumbnail_url.replace("_s", +"_b"),e='
'+d+'
'):e="Flickr"==b.provider_name?'

"+a+"

":"
Error loading this picture
",e};b.fn.oembed.getRichCode=function(a,b){return b.html};b.fn.oembed.getGenericCode=function(a,b){var e=''+(null!==b.title?b.title:a)+"";return b.html&&(e+="
"+b.html+"
"),e};b.fn.oembed.getOEmbedProvider=function(a){for(var e,h,d,c=0;c$/, +"$1")||""}}:{from:"json",apiendpoint:this.apiendpoint,url:function(a){return this.apiendpoint+"?format=json&url="+a},datareturn:function(a){var c,d,e;if("video"!=a.json.type&&(a.json.url||a.json.thumbnail_url)&&!a.json.html.indexOf("iframe"))return'';if(a.json.html.indexOf("iframe")){a.json.html.indexOf("allowfullscreen>")&&(a.json.html=a.json.html.replace("allowfullscreen>",'allowfullscreen="false">'));var a=b.parseHTML(a.json.html),f=a[0].width, +l=a[0].height;return j.maxHeight&&j.maxWidth&&(j.useResponsiveResize?(d=f,e=l,f>j.maxWidth&&(c=j.maxWidth/f,d=j.maxWidth,e=l*c,l*=c,f*=c),l>j.maxHeight&&(c=j.maxHeight/l,e=j.maxHeight,d=f*c),l=e,f=d):(l=j.maxHeight,f=j.maxWidth)),a[0].width=f,a[0].height=l,a[0].outerHTML}return a.json.html||""}},this.apiendpoint=null);for(var f in c)this[f]=c[f];this.format=this.format||"json";this.callbackparameter=this.callbackparameter||"callback";this.embedtag=this.embedtag||{tag:""}};b.fn.updateOEmbedProvider= +function(a,e,h,d,c){for(var f,g=0;g':!1}}}),new b.fn.oembed.OEmbedProvider("deviantart","photo",["deviantart.com/.+","fav.me/.+","deviantart.com/.+"],"http://backend.deviantart.com/oembed",{format:"jsonp"}),new b.fn.oembed.OEmbedProvider("skitch", +"photo",["skitch.com/.+"],null,{yql:{xpath:"json",from:"json",url:function(a){return"http://skitch.com/oembed/?format=json&url="+a},datareturn:function(a){return b.fn.oembed.getPhotoCode(a.json.url,a.json)}}}),new b.fn.oembed.OEmbedProvider("mobypicture","photo",["mobypicture.com/user/.+/view/.+","moby.to/.+"],"http://api.mobypicture.com/oEmbed"),new b.fn.oembed.OEmbedProvider("flickr","photo",["flickr\\.com/photos/.+"],"http://flickr.com/services/oembed",{callbackparameter:"jsoncallback"}),new b.fn.oembed.OEmbedProvider("photobucket", +"photo",["photobucket\\.com/(albums|groups)/.+"],m()+"photobucket.com/oembed/"),new b.fn.oembed.OEmbedProvider("instagram","photo",["instagr\\.?am(\\.com)?/.+"],m()+"api.instagram.com/oembed"),new b.fn.oembed.OEmbedProvider("SmugMug","photo",["smugmug.com/[-.\\w@]+/.+"],"http://api.smugmug.com/services/oembed/"),new b.fn.oembed.OEmbedProvider("dribbble","photo",["dribbble.com/shots/.+"],"http://api.dribbble.com/shots/$1?callback=?",{templateRegex:/.*shots\/([\d]+).*/,templateData:function(a){return a.image_teaser_url? +'':!1}}),new b.fn.oembed.OEmbedProvider("chart.ly","photo",["chart\\.ly/[a-z0-9]{6,8}"],"http://chart.ly/uploads/large_$1.png",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new b.fn.oembed.OEmbedProvider("circuitlab","photo",["circuitlab.com/circuit/.+"],"https://www.circuitlab.com/circuit/$1/screenshot/540x405/",{templateRegex:/.*circuit\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new b.fn.oembed.OEmbedProvider("23hq","photo",["23hq.com/[-.\\w@]+/photo/.+"], +"http://www.23hq.com/23/oembed",{useYQL:"json"}),new b.fn.oembed.OEmbedProvider("img.ly","photo",["img\\.ly/.+"],"http://img.ly/show/thumb/$1",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new b.fn.oembed.OEmbedProvider("twitgoo.com","photo",["twitgoo\\.com/.+"],"http://twitgoo.com/show/thumb/$1",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new b.fn.oembed.OEmbedProvider("imgur.com","photo",["imgur\\.com/gallery/.+"],m()+"imgur.com/$1l.jpg",{templateRegex:/.*gallery\/([^\/]+).*/, +embedtag:{tag:"img"},nocache:1}),new b.fn.oembed.OEmbedProvider("visual.ly","rich",["visual\\.ly/.+"],null,{yql:{xpath:"//a[@id=\\'gc_article_graphic_image\\']/img",from:"htmlstring"}}),new b.fn.oembed.OEmbedProvider("gravtar","photo",["mailto:.+"],null,{templateRegex:/mailto:([^\/]+).*/,template:function(a,b){return'on Gravtar'}}),new b.fn.oembed.OEmbedProvider("twitter","rich",["twitter.com/.+"],"https://api.twitter.com/1/statuses/oembed.json?id="), +new b.fn.oembed.OEmbedProvider("gmep","rich",["gmep.imeducate.com/.*","gmep.org/.*"],"http://gmep.org/oembed.json"),new b.fn.oembed.OEmbedProvider("urtak","rich",["urtak.com/(u|clr)/.+"],"http://oembed.urtak.com/1/oembed"),new b.fn.oembed.OEmbedProvider("cacoo","rich",["cacoo.com/.+"],"http://cacoo.com/oembed.json"),new b.fn.oembed.OEmbedProvider("dailymile","rich",["dailymile.com/people/.*/entries/.*"],"http://api.dailymile.com/oembed"),new b.fn.oembed.OEmbedProvider("dipity","rich",["dipity.com/timeline/.+"], +"http://www.dipity.com/oembed/timeline/",{useYQL:"json"}),new b.fn.oembed.OEmbedProvider("sketchfab","rich",["sketchfab.com/show/.+"],"http://sketchfab.com/oembed",{useYQL:"json"}),new b.fn.oembed.OEmbedProvider("speakerdeck","rich",["speakerdeck.com/.+"],"http://speakerdeck.com/oembed.json",{useYQL:"json"}),new b.fn.oembed.OEmbedProvider("popplet","rich",["popplet.com/app/.*"],"http://popplet.com/app/Popplet_Alpha.swf?page_id=$1&em=1",{templateRegex:/.*#\/([^\/]+).*/,embedtag:{width:460,height:460}}), +new b.fn.oembed.OEmbedProvider("pearltrees","rich",["pearltrees.com/.*"],"http://cdn.pearltrees.com/s/embed/getApp?",{templateRegex:/.*N-f=1_(\d+).*N-p=(\d+).*/,embedtag:{width:460,height:460,flashvars:"lang=en_US&embedId=pt-embed-$1-693&treeId=$1&pearlId=$2&treeTitle=Diagrams%2FVisualization&site=www.pearltrees.com%2FF"}}),new b.fn.oembed.OEmbedProvider("prezi","rich",["prezi.com/.*"],"http://prezi.com/bin/preziloader.swf?",{templateRegex:/.*com\/([^\/]+)\/.*/,embedtag:{width:550, +height:400,flashvars:"prezi_id=$1&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"}}),new b.fn.oembed.OEmbedProvider("tourwrist","rich",["tourwrist.com/tours/.+"],null,{templateRegex:/.*tours.([\d]+).*/,template:function(a,b){return setTimeout(function(){loadEmbeds&&loadEmbeds()},2E3),"