]> BookStack Code Mirror - bookstack/commit
Added WYSWIYG editor code editor cancel focus return
authorDan Brown <redacted>
Sun, 7 May 2023 18:36:10 +0000 (19:36 +0100)
committerDan Brown <redacted>
Sun, 7 May 2023 18:36:10 +0000 (19:36 +0100)
commit3bcbf6b9c55c9988b04835473053d514a1cb5df3
tree249fbddefddc7ca03177dfa8ab57fc8fd9c35229
parent573bc3ec45dcfa754be5768ca62deffac421f635
Added WYSWIYG editor code editor cancel focus return

Focus now returns to the editor properly when you quit out the code
editor without saving.
This also sets the return location to be correct on normal saving (Would
sometimes jump to the end of the document).

For #4109.
resources/js/components/code-editor.js
resources/js/wysiwyg/plugin-codeeditor.js