summaryrefslogtreecommitdiff
path: root/src/static/js/ace2_inner.js
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2013-03-06 15:40:02 +0100
committerMarcel Klehr <mklehr@gmx.net>2013-03-06 15:40:02 +0100
commit5731ef78020095b55a58e41b9f3e0cf7335e97c5 (patch)
tree726ecbbadcdea8ccfc481971f85ecaf62401e1d2 /src/static/js/ace2_inner.js
parent2a8038b9febdb199c3a85bcbae44af6503d84b72 (diff)
downloadetherpad-lite-5731ef78020095b55a58e41b9f3e0cf7335e97c5.zip
Fix ace rtlIsTrue property setter
Diffstat (limited to 'src/static/js/ace2_inner.js')
-rw-r--r--src/static/js/ace2_inner.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index f2320926..b8b59b84 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -959,7 +959,11 @@ function Ace2Inner(){
styled: setStyled,
textface: setTextFace,
textsize: setTextSize,
- rtlistrue: setClassPresenceNamed(root, "rtl")
+ rtlistrue: function(value) {
+ setClassPresence(root, "rtl", value)
+ setClassPresence(root, "ltr", !value)
+ document.documentElement.dir = value? 'rtl' : 'ltr'
+ }
};
var setter = setters[key.toLowerCase()];