Sha256: 354ccc99657cfb980f64ce6b022ee9209f110cb6c2c78f31d587fe8d1b2bffa7

Contents?: true

Size: 727 Bytes

Versions: 39

Compression:

Stored size: 727 Bytes

Contents

tinymce.PluginManager.add("directionality",function(a){function b(b){var c,d=a.dom,e=a.selection.getSelectedBlocks();e.length&&(c=d.getAttrib(e[0],"dir"),tinymce.each(e,function(a){d.getParent(a.parentNode,"*[dir='"+b+"']",d.getRoot())||(c!=b?d.setAttrib(a,"dir",b):d.setAttrib(a,"dir",null))}),a.nodeChanged())}function c(a){var b=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(c){b.push(c+"[dir="+a+"]")}),b.join(",")}a.addCommand("mceDirectionLTR",function(){b("ltr")}),a.addCommand("mceDirectionRTL",function(){b("rtl")}),a.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:c("ltr")}),a.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:c("rtl")})});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.19 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.18 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.17 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.16 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.15 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.14 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.13 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.12 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.11 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.10 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.9 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.8 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.7 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.6 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.5 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.4 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.3 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.2 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js
wbase-0.3.1 lib/vendor/admin/tinymce/plugins/directionality/plugin.min.js