mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Started upgrade to TinyMCE6, Untested
- Merged in latest TinyMCE code. - Gone through tinymce upgrade guide, made required config changes. - Altered license references.
This commit is contained in:
@ -132,9 +132,9 @@ function drop(editor, options, event) {
|
||||
const range = editor.selection.getRng();
|
||||
const selectedNodeRoot = selectedNode.closest('body > *');
|
||||
if (range.startOffset > (range.startContainer.length / 2)) {
|
||||
editor.$(selectedNodeRoot).after(draggedContentEditable);
|
||||
editor.dom.select(selectedNodeRoot).after(draggedContentEditable);
|
||||
} else {
|
||||
editor.$(selectedNodeRoot).before(draggedContentEditable);
|
||||
editor.dom.select(selectedNodeRoot).before(draggedContentEditable);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user