Sha256: c3a04ed1940b0f2f8c4341a0bca0f7c5bfc1c27aceae4e2af9f81b2b8a0ce032
Contents?: true
Size: 1.39 KB
Versions: 7
Compression:
Stored size: 1.39 KB
Contents
(function(){var e=".%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;background-position: top %3;border: 1px dotted gray;padding-top: 8px;padding-bottom: 8px;padding-%3: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}";var a=/%1/g,b=/%2/g,d=/%3/g;var c={readOnly:1,preserveState:true,editorFocus:false,exec:function(f){this.toggleState();this.refresh(f)},refresh:function(f){if(f.document){var g=(this.state==CKEDITOR.TRISTATE_ON)?"addClass":"removeClass";f.document.getBody()[g]("cke_show_blocks")}}};CKEDITOR.plugins.add("esp_showblocks",{requires:["wysiwygarea"],init:function(f){var g=f.addCommand("esp_showblocks",c);g.canUndo=false;if(f.config.startupOutlineBlocks){g.setState(CKEDITOR.TRISTATE_ON)}f.addCss(e.replace(a,"background-image: url("+CKEDITOR.getUrl(this.path)+"images/block_").replace(b,"cke_show_blocks ").replace(d,f.lang.dir=="rtl"?"right":"left"));f.ui.addButton("Esp_ShowBlocks",{label:f.lang.esp_showBlocks,command:"esp_showblocks",icon:this.path+"images/esp_showblocks.png"});f.on("mode",function(){if(g.state!=CKEDITOR.TRISTATE_DISABLED){g.refresh(f)}});f.on("contentDom",function(){if(g.state!=CKEDITOR.TRISTATE_DISABLED){g.refresh(f)}})}})})();
Version data entries
7 entries across 7 versions & 1 rubygems