Adding a Character Data (CDATA) tag <![CDATA[something]]> in the WYSIWYG or markdown view will break the editor. The HTML generated will be incomplete and a JS error is triggered when going from markdown to WYSIWYG.
Uncaught TypeError: Cannot read properties of null (reading '1')
at htmlBlock (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at o (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at e.convert (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at e.convertNode (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at e.toWysiwygModel (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at t.e.changeMode (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at ccf7da5b-793eb8a61f9f01d3d003.js:2
at Array.forEach (<anonymous>)
at e.emit (ccf7da5b-793eb8a61f9f01d3d003.js:2)
at HTMLDivElement.<anonymous> (ccf7da5b-793eb8a61f9f01d3d003.js:2)
Describe the bug
Adding a Character Data (CDATA) tag
<![CDATA[something]]>
in the WYSIWYG or markdown view will break the editor. The HTML generated will be incomplete and a JS error is triggered when going from markdown to WYSIWYG.To Reproduce
Steps to reproduce the behavior: