]> BookStack Code Mirror - bookstack/commit
Updated tinymce code block handling to help prevent breaking history states
authorDan Brown <redacted>
Mon, 19 Apr 2021 21:00:33 +0000 (22:00 +0100)
committerDan Brown <redacted>
Mon, 19 Apr 2021 21:00:33 +0000 (22:00 +0100)
commit70be28d22cb0067f70a53a74aa3a89722a3ebbd9
treee55047c84c30debb788270cea8ca0e7ea3c47747
parent9df4dee1b2db6abeb25a4b36226aa1c3ee20eba5
Updated tinymce code block handling to help prevent breaking history states

Only used an undo transaction on startup and added a small delay
to codeMirror parsing on SetContent's to help avoid
the rendering activities getting caught in undoManager states.
Seemed to improve things a lot in Firefox & chrome on my dev machine.

For #2602
resources/js/components/wysiwyg-editor.js