summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source/tinymce-405/plugins/directionality
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:56:48 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:57:07 +0200
commit3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch)
treed0c2e4d934cc34ba7d4232f759923b5a257dcb21 /framework/Web/Javascripts/source/tinymce-405/plugins/directionality
parentb833247ce597ec26159b46c8dfbea7f1e265950b (diff)
Merge up to r3319
Diffstat (limited to 'framework/Web/Javascripts/source/tinymce-405/plugins/directionality')
-rwxr-xr-xframework/Web/Javascripts/source/tinymce-405/plugins/directionality/plugin.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/source/tinymce-405/plugins/directionality/plugin.min.js b/framework/Web/Javascripts/source/tinymce-405/plugins/directionality/plugin.min.js
new file mode 100755
index 00000000..60c7f9d5
--- /dev/null
+++ b/framework/Web/Javascripts/source/tinymce-405/plugins/directionality/plugin.min.js
@@ -0,0 +1 @@
+tinymce.PluginManager.add("directionality",function(e){function t(t){var n,i=e.dom,a=e.selection.getSelectedBlocks();a.length&&(n=i.getAttrib(a[0],"dir"),tinymce.each(a,function(e){i.getParent(e.parentNode,"*[dir='"+t+"']",i.getRoot())||(n!=t?i.setAttrib(e,"dir",t):i.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")})}); \ No newline at end of file