Added base RTL support

For #939

- Adds way to check if current language is RTL via config system.
- Made TinyMCE default direction be based on current language text
direction.
- Fixed bullet points to be RTL compatible.
- Set page content body to have direction based on content.
This commit is contained in:
Dan Brown
2018-09-22 13:18:26 +01:00
parent c667c6e235
commit 1cb6ae39c8
9 changed files with 50 additions and 2 deletions

View File

@ -157,6 +157,7 @@ function wysiwygView(elem) {
newWrap.className = 'CodeMirrorContainer';
newWrap.setAttribute('data-lang', lang);
newWrap.setAttribute('dir', 'ltr');
newTextArea.style.display = 'none';
elem.parentNode.replaceChild(newWrap, elem);