Sha256: 705e9a8dacd3020faa12540a8eb7e83b2252feeaa12acd902762328c48230ac0

Contents?: true

Size: 1003 Bytes

Versions: 7

Compression:

Stored size: 1003 Bytes

Contents

CKEDITOR.plugins.add("basicstyles",{requires:["styles","button"],init:function(b){var c=function(f,i,g,e){var h=new CKEDITOR.style(e);b.attachStyleStateChange(h,function(j){!b.readOnly&&b.getCommand(g).setState(j)});b.addCommand(g,new CKEDITOR.styleCommand(h));b.ui.addButton(f,{label:i,command:g})};var a=b.config,d=b.lang;c("Bold",d.bold,"bold",a.coreStyles_bold);c("Italic",d.italic,"italic",a.coreStyles_italic);c("Underline",d.underline,"underline",a.coreStyles_underline);c("Strike",d.strike,"strike",a.coreStyles_strike);c("Subscript",d.subscript,"subscript",a.coreStyles_subscript);c("Superscript",d.superscript,"superscript",a.coreStyles_superscript)}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"};CKEDITOR.config.coreStyles_superscript={element:"sup"};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
esp-ckeditor-0.1.7 vendor/assets/javascripts/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.6 vendor/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.4 vendor/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.3 app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.2 app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.1 app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js
esp-ckeditor-0.1.0 app/assets/javascripts/esp-ckeditor/plugins/basicstyles/plugin.js