Sha256: 272154d7f19456d83a4456884e6304d520292feb6619ed171c4b2103a13ae0a1

Contents?: true

Size: 726 Bytes

Versions: 24

Compression:

Stored size: 726 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
mosaico-2.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
mosaico-1.1.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
mosaico-1.1.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
mosaico-1.0.2 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
mosaico-1.0.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
mosaico-1.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/directionality/plugin.min.js
tinymce-rails-4.5.7 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.6 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.5 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.4 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.3 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.2 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
tinymce-rails-4.5.1 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js
guts-1.1.1 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
guts-1.1.0 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
guts-1.0.8 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
guts-1.0.7 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
guts-1.0.5 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
guts-1.0.3 app/assets/javascripts/guts/vendor/tinymce/plugins/directionality/plugin.min.js
tinymce-rails-4.3.3 vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js