mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Merge pull request #1594 from ether/fix/rtl-option
Fix ace rtlIsTrue property setter
This commit is contained in:
commit
7ada830e2e
1 changed files with 5 additions and 1 deletions
|
@ -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()];
|
||||
|
|
Loading…
Reference in a new issue