mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-23 23:02:08 +03:00
Lexical: Fixed a range of issues in RTL mode
This commit is contained in:
@@ -42,8 +42,13 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
|
||||
const editWrap = el('div', {
|
||||
class: 'editor-content-wrap',
|
||||
}, [editArea]);
|
||||
|
||||
container.append(editWrap);
|
||||
container.classList.add('editor-container');
|
||||
container.setAttribute('dir', options.textDirection);
|
||||
if (options.darkMode) {
|
||||
container.classList.add('editor-dark');
|
||||
}
|
||||
|
||||
const editor = createEditor(config);
|
||||
editor.setRootElement(editArea);
|
||||
|
||||
Reference in New Issue
Block a user