mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-23 23:29:59 +08:00
Updated wysiwyg code-block insert flow to be mouseless
- Can now save a code block with Ctrl+Enter. - Codemirror will be in focus on popup show. - TinyMCE will get back focus on code save. For #1972
This commit is contained in:
@ -5,6 +5,7 @@ const methods = {
|
||||
if (!this.editor) this.editor = codeLib.popupEditor(this.$refs.editor, this.language);
|
||||
this.$refs.overlay.components.overlay.show(() => {
|
||||
codeLib.updateLayout(this.editor);
|
||||
this.editor.focus();
|
||||
});
|
||||
},
|
||||
hide() {
|
||||
|
Reference in New Issue
Block a user