diff options
author | John McLear <john@mclear.co.uk> | 2013-03-06 06:48:43 -0800 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-03-06 06:48:43 -0800 |
commit | 7ada830e2e63720d07e034e0188d9c1e631e9823 (patch) | |
tree | 726ecbbadcdea8ccfc481971f85ecaf62401e1d2 | |
parent | 2a8038b9febdb199c3a85bcbae44af6503d84b72 (diff) | |
parent | 5731ef78020095b55a58e41b9f3e0cf7335e97c5 (diff) | |
download | etherpad-lite-7ada830e2e63720d07e034e0188d9c1e631e9823.zip |
Merge pull request #1594 from ether/fix/rtl-option
Fix ace rtlIsTrue property setter
-rw-r--r-- | src/static/js/ace2_inner.js | 6 |
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()]; |