Merge pull request #1594 from ether/fix/rtl-option
Fix ace rtlIsTrue property setter
This commit is contained in:
commit
7ada830e2e
|
@ -959,7 +959,11 @@ function Ace2Inner(){
|
||||||
styled: setStyled,
|
styled: setStyled,
|
||||||
textface: setTextFace,
|
textface: setTextFace,
|
||||||
textsize: setTextSize,
|
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()];
|
var setter = setters[key.toLowerCase()];
|
||||||
|
|
Loading…
Reference in New Issue