]> BookStack Code Mirror - bookstack/commit
Revamped workings of WYSIWYG code blocks 3260/head
authorDan Brown <redacted>
Wed, 9 Feb 2022 19:24:27 +0000 (19:24 +0000)
committerDan Brown <redacted>
Wed, 9 Feb 2022 19:24:27 +0000 (19:24 +0000)
commit2b3726702d6dc4d0d0262e00f161ca06835cd42d
tree61bc5e8ea6095f4ba3cfac636406d00f9e8a2d57
parent2b46b00f293f3f9607150671e0d8c3b2ffa6630c
Revamped workings of WYSIWYG code blocks

Code blocks in tinymce could sometimes end up exploded into the sub
elements of the codemirror display.
This changes the strategy to render codemirror within the shadow dom of
a custom element while preserving the normal pre/code DOM structure.

Still a little instability when moving/adding code blocks within details
blocks but much harder to break things now.
resources/js/code.mjs
resources/js/wysiwyg/config.js
resources/js/wysiwyg/plugin-codeeditor.js
resources/js/wysiwyg/plugins-details.js
resources/lang/en/editor.php
resources/sass/_pages.scss
resources/sass/_tinymce.scss
Morty Proxy This is a proxified and sanitized view of the page, visit original site.