]> BookStack Code Mirror - bookstack/commit
Updated drawio tinymce plugin to use embeds
authorDan Brown <redacted>
Mon, 23 May 2022 11:24:40 +0000 (12:24 +0100)
committerDan Brown <redacted>
Mon, 23 May 2022 11:24:40 +0000 (12:24 +0100)
commit5fd8e7e0e98d97337daadc18ebe88c6f28b0c18c
tree3498f84a92c44fa9a527bf450594510748d7928d
parentd926ca5f71314c40058932ac7886c5fe9e2c8a6b
Updated drawio tinymce plugin to use embeds

- Adds support for handling drawings as embeds, based on image
  extension.
- Adds additional attribute to drawio elements within editor to prevent
  tinymce replacing embeds with a placeholder.
- Updates how contenteditable is applied to drawio blocks within editor,
  to use proper filters instead of using the SetContent event.
resources/js/services/drawio.js
resources/js/wysiwyg/plugin-drawio.js
resources/sass/_tinymce.scss