]> BookStack Code Mirror - bookstack/commit
Changed autosave handling for better editor performance
authorDan Brown <redacted>
Thu, 23 Feb 2023 12:30:27 +0000 (12:30 +0000)
committerDan Brown <redacted>
Thu, 23 Feb 2023 12:30:27 +0000 (12:30 +0000)
commit6545afacd69bbb1d13e4e4c97da84004789a99e8
tree5e02c2e4da06575900c2f406697fe44e619088dc
parent31495758a9459d13d6dd4718262c23f7f763bc92
Changed autosave handling for better editor performance

This changes how the editors interact with the parent page-editor
compontent, which handles auto-saving.
Instead of blasting the full editor content upon any change to that
parent compontent, the editors just alert of a change, without the
content. The parent compontent then requests the editor content from the
editor component when it needs that data for an autosave.

For #3981
resources/js/components/markdown-editor.js
resources/js/components/page-editor.js
resources/js/components/wysiwyg-editor.js
resources/js/markdown/actions.js
resources/js/wysiwyg/config.js