From fda56e40b460ab06b6abee98ae1bc7d5f5847c9f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Apr 2016 02:27:10 -0400 Subject: add tinymce --- data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js (limited to 'data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js') diff --git a/data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js new file mode 100644 index 0000000..43caba6 --- /dev/null +++ b/data/stuff/tinymce-4.3.7/plugins/directionality/plugin.min.js @@ -0,0 +1 @@ +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 -- cgit v1.2.3