Proper RTL support (#1154)

* Add RTL styles. Most of the work is done by the browser 💖

* Refactor getLanguage

* Additional fixes

* Mirror the mouse pointer icon

* Move the vertical scrollbar to the left on RTL

* Revert "Mirror the mouse pointer icon"

This reverts commit f69b132538038d231b1b1acc0d6f4a28c91130bb.
This commit is contained in:
Jed Fox
2020-04-02 12:21:19 -04:00
committed by GitHub
parent 45e4949da0
commit 663526129a
18 changed files with 157 additions and 94 deletions

View File

@ -43,6 +43,7 @@ export function textWysiwyg({
} catch {
editable.contentEditable = "true";
}
editable.dir = "auto";
editable.tabIndex = 0;
editable.innerText = initText;
editable.dataset.type = "wysiwyg";