diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-12-10 14:02:20 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-12-10 14:02:20 +0100 |
commit | 8841810bce7446601a3d5cd8cd23d5ccdbbf99e7 (patch) | |
tree | f490c07c94207a55b66c01477ae72ea1a657828d /program/js/tinymce/plugins/directionality/plugin.min.js | |
parent | 630d08fb49615cce9827d604854d58a78adf6e7d (diff) |
Update TinyMCE to 4.1.7, use cache_suffix option to prevent browser caching issues
Diffstat (limited to 'program/js/tinymce/plugins/directionality/plugin.min.js')
-rw-r--r-- | program/js/tinymce/plugins/directionality/plugin.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/tinymce/plugins/directionality/plugin.min.js b/program/js/tinymce/plugins/directionality/plugin.min.js index 2994eb676..43caba6e2 100644 --- a/program/js/tinymce/plugins/directionality/plugin.min.js +++ b/program/js/tinymce/plugins/directionality/plugin.min.js @@ -1 +1 @@ -tinymce.PluginManager.add("directionality",function(t){function e(e){var i,n=t.dom,r=t.selection.getSelectedBlocks();r.length&&(i=n.getAttrib(r[0],"dir"),tinymce.each(r,function(t){n.getParent(t.parentNode,"*[dir='"+e+"']",n.getRoot())||(i!=e?n.setAttrib(t,"dir",e):n.setAttrib(t,"dir",null))}),t.nodeChanged())}function i(t){var e=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(i){e.push(i+"[dir="+t+"]")}),e.join(",")}t.addCommand("mceDirectionLTR",function(){e("ltr")}),t.addCommand("mceDirectionRTL",function(){e("rtl")}),t.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:i("ltr")}),t.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:i("rtl")})});
\ No newline at end of file +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")})});
\ No newline at end of file |