]> BookStack Code Mirror - bookstack/commit
Added auto-focus behaviour to page editor
authorDan Brown <redacted>
Mon, 27 Apr 2020 14:54:39 +0000 (15:54 +0100)
committerDan Brown <redacted>
Mon, 27 Apr 2020 14:54:39 +0000 (15:54 +0100)
commit4ef362143bf9f2508b69da260e07ba0330ca6edf
treef27c3fe571865a2e9c7fb33fa8c80dec150f43d8
parent8ce38d2158d455ac18f7181119dcc4d68073eda9
Added auto-focus behaviour to page editor

- Will focus on title if the value of the field matches the default text
for the current user's language.
- Otherwise will focus on the editor body.
- Added and tested on both editors.

For #2036
resources/js/components/markdown-editor.js
resources/js/components/wysiwyg-editor.js
resources/js/vues/page-editor.js
resources/views/pages/form.blade.php