]> BookStack Code Mirror - bookstack/commit
Added wysiwyg filter to handle <br> tags within code blocks
authorDan Brown <redacted>
Wed, 23 Mar 2022 15:11:14 +0000 (15:11 +0000)
committerDan Brown <redacted>
Wed, 23 Mar 2022 15:11:14 +0000 (15:11 +0000)
commitdd7463259ad1f6384807616fe967e373003f3d69
treea1ef718f94074a4ad891253707e5ee74db7273cb
parentd23b24b8db2e4268dd5e32b9cfda1dd6a5a3caf3
Added wysiwyg filter to handle <br> tags within code blocks

This filters out <br> elements within code blocks and replaces them with
newlines. The editor started using <br>'s more harshley after some
configuration changes upon upgrading tinymce, in which we standardised
on forced br tags to avoid empty elements.

For #3327
resources/js/wysiwyg/config.js