Merge pull request #1594 from ether/fix/rtl-option

Fix ace rtlIsTrue property setter
This commit is contained in:
John McLear 2013-03-06 06:48:43 -08:00
commit 7ada830e2e
1 changed files with 5 additions and 1 deletions

View File

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