Fix ace rtlIsTrue property setter

pull/1594/head
Marcel Klehr 2013-03-06 15:40:02 +01:00
parent 2a8038b9fe
commit 5731ef7802
1 changed files with 5 additions and 1 deletions

View File

@ -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()];