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:
Dan Brown
2020-04-05 21:55:31 +01:00
parent 02f7ffe53c
commit 642db1387e
3 changed files with 13 additions and 8 deletions

View File

@ -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() {