Sha256: adb55c8769c983b054a73eab2c42cfad2b98f995485593d9210998c229523b06

Contents?: true

Size: 1.23 KB

Versions: 164

Compression:

Stored size: 1.23 KB

Contents

(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(b,c){var d=this;d.editor=b;function a(e){var h=b.dom,g,f=b.selection.getSelectedBlocks();if(f.length){g=h.getAttrib(f[0],"dir");tinymce.each(f,function(i){if(!h.getParent(i.parentNode,"*[dir='"+e+"']",h.getRoot())){if(g!=e){h.setAttrib(i,"dir",e)}else{h.setAttrib(i,"dir",null)}}});b.nodeChanged()}}b.addCommand("mceDirectionLTR",function(){a("ltr")});b.addCommand("mceDirectionRTL",function(){a("rtl")});b.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});b.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});b.onNodeChange.add(d._nodeChange,d)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();

Version data entries

164 entries across 164 versions & 8 rubygems

Version Path
wagn-1.19.3 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.19.2 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.19.1 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.19.0 rails/assets/tinymce/plugins/directionality/editor_plugin.js
tinymce-rails-3.5.11.1 vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.6 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.5 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.4 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.3 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.2 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.1 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.18.0 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.17.4 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.17.3 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.17.2 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.17.1 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.17.0 rails/assets/tinymce/plugins/directionality/editor_plugin.js
ish_lib-0.0.3 vendor/assets/themeforest/alpona/html/js/tiny_mce/plugins/directionality/editor_plugin.js
wagn-1.16.15 rails/assets/tinymce/plugins/directionality/editor_plugin.js
wagn-1.16.14 rails/assets/tinymce/plugins/directionality/editor_plugin.js