1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03: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:
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

@ -1,6 +1,6 @@
<div id="code-editor">
<div overlay ref="overlay" v-cloak @click="hide()">
<div class="popup-body" tabindex="-1" @click.stop>
<div class="popup-body" tabindex="-1" @click.stop @keydown.enter.ctrl="save">
<div class="popup-header primary-background">
<div class="popup-title">{{ trans('components.code_editor') }}</div>