switch to codemirror from ace editor. ace does not properly support bidi