Fix ace rtlIsTrue property setter
parent
2a8038b9fe
commit
5731ef7802
|
@ -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