]> BookStack Code Mirror - bookstack/commit
Improved WYSIWYG code block behaviour via range of fixes
authorDan Brown <redacted>
Sun, 27 Feb 2022 17:18:08 +0000 (17:18 +0000)
committerDan Brown <redacted>
Sun, 27 Feb 2022 17:21:24 +0000 (17:21 +0000)
commit0de4d6d22342fa5a84393e5e18ff59fe42cbb876
treee5cfef53347b48b38af612254329daa84a8cdf91
parent06f694bad26d3a2f7fed27adf0ee1eddc29e9422
Improved WYSIWYG code block behaviour via range of fixes

- Fixed issues with new code blocks breaking or acting odd due to
  misnamed contenteditable attribute.
- Helped fix issue where code blocks may show in a strage blank state
  due to timing within shadow dom loading.
- Fixed some function timing issues where some functions required their
  async predecessor to have finished.

Tested rather heavily in firefox and brave.
Fixes #3292
resources/js/components/code-editor.js
resources/js/wysiwyg/plugin-codeeditor.js