diff -r 000000000000 -r 44d330dccc59 ckeditor/plugins/pbckcode/dialogs/pbckcode.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ckeditor/plugins/pbckcode/dialogs/pbckcode.js Thu Dec 15 18:10:20 2016 +0300 @@ -0,0 +1,6 @@ +CKEDITOR.dialog.add("pbckcodeDialog",function(b){var f=["1","2","4","8"],g,e=new PBSyntaxHighlighter(b.settings.highlighter),c,d,h;return{title:b.lang.pbckcode.title,minWidth:600,minHeight:400,contents:[{id:"editor",label:b.lang.pbckcode.editor,elements:[{type:"hbox",children:[{type:"select",id:"code-select",className:"cke_pbckcode_form",label:b.lang.pbckcode.mode,items:b.settings.modes,"default":b.settings.modes[0][1],setup:function(a){a&&(a=a.getAscendant("pre",!0),this.setValue(a.getAttribute("data-pbcklang")))}, +commit:function(a){a&&(a=a.getAscendant("pre",!0),a.setAttribute("data-pbcklang",this.getValue()))},onChange:function(){d.setMode("ace/mode/"+this.getValue())}},{type:"select",id:"code-tabsize-select",className:"cke_pbckcode_form",label:"Tab size",items:f,"default":f[2],setup:function(a){a&&(a=a.getAscendant("pre",!0),this.setValue(a.getAttribute("data-pbcktabsize")))},commit:function(a){a&&(a=a.getAscendant("pre",!0),a.setAttribute("data-pbcktabsize",this.getValue()))},onChange:function(a){a&&(h.convertIndentation(d, +" ",this.getValue()),d.setTabSize(this.getValue()))}}]},{type:"html",html:"
",id:"code-textarea",className:"cke_pbckcode_ace",style:"position: absolute; top: 80px; left: 10px; right: 10px; bottom: 50px;",setup:function(a){a=a.getHtml();a=a.replace(RegExp("