mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-24 07:39:59 +08:00
@ -401,6 +401,11 @@ function listenForBookStackEditorEvents(editor) {
|
||||
editor.setContent(content);
|
||||
});
|
||||
|
||||
// Insert editor content at the current location
|
||||
window.$events.listen('editor::insert', ({html}) => {
|
||||
editor.insertContent(html);
|
||||
});
|
||||
|
||||
// Focus on the editor
|
||||
window.$events.listen('editor::focus', () => {
|
||||
editor.focus();
|
||||
|
Reference in New Issue
Block a user