X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=release%2Fplugins%2Fdiv%2Fdialogs%2Fdiv.js;fp=release%2Fplugins%2Fdiv%2Fdialogs%2Fdiv.js;h=b22af9e719d8a14ab3ae21a7a46e51482f342c32;hb=eaa9271590ab73b6eef3fa88bc74a9553eefd857;hp=0000000000000000000000000000000000000000;hpb=cd64262b335d84c1dc18cd1b986712cf7befdefb;p=perso%2FImmae%2FProjets%2Fpackagist%2Fludivine-ckeditor-component.git diff --git a/release/plugins/div/dialogs/div.js b/release/plugins/div/dialogs/div.js new file mode 100644 index 0000000..b22af9e --- /dev/null +++ b/release/plugins/div/dialogs/div.js @@ -0,0 +1,9 @@ +(function(){function t(a,m,r){m.is&&m.getCustomData("block_processed")||(m.is&&CKEDITOR.dom.element.setMarker(r,m,"block_processed",!0),a.push(m))}function q(a,m){function r(){this.foreach(function(a){/^(?!vbox|hbox)/.test(a.type)&&(a.setup||(a.setup=function(c){a.setValue(c.getAttribute(a.id)||"",1)}),a.commit||(a.commit=function(c){var g=this.getValue();if("dir"!=a.id||c.getComputedStyle("direction")!=g)g?c.setAttribute(a.id,g):c.removeAttribute(a.id)}))})}var q=function(){var f=CKEDITOR.tools.extend({}, +CKEDITOR.dtd.$blockLimit);a.config.div_wrapTable&&(delete f.td,delete f.th);return f}(),u=CKEDITOR.dtd.div,n={},p=[];return{title:a.lang.div.title,minWidth:400,minHeight:165,contents:[{id:"info",label:a.lang.common.generalTab,title:a.lang.common.generalTab,elements:[{type:"hbox",widths:["50%","50%"],children:[{id:"elementStyle",type:"select",style:"width: 100%;",label:a.lang.div.styleSelectLabel,"default":"",items:[[a.lang.common.notSet,""]],onChange:function(){var f=["info:elementStyle","info:class", +"advanced:dir","advanced:style"],c=this.getDialog(),g=c._element&&c._element.clone()||new CKEDITOR.dom.element("div",a.document);this.commit(g,!0);for(var f=[].concat(f),b=f.length,k,e=0;e