Closed as not planned
Closed as not planned
Description
What is the current behavior? Describe the bug
A protect was added to ignore the in tinymce. The protect works but after each line it adds a
when switching to source code view again.
protect: [/.(<![\s\S]?-->)/g]
<!-- comment -->
<!-- comment2 -->
<!-- comment3 -->
becomes
<!-- comment -->
<p> </p>
<!-- comment2 -->
<p> </p>
<!-- comment3 -->
Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.
https://fiddle.tiny.cloud/NThaab
- add the following in the source code view
<!-- comment -->
<!-- comment2 -->
<!-- comment3 -->
- close the source code view
- open the source code view
What is the expected behavior?
<!-- comment -->
<!-- comment2 -->
<!-- comment3 -->
stays
<!-- comment -->
<!-- comment2 -->
<!-- comment3 -->
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
Im using 5.10.2 and tested this in chrome Version 97.0.4692.71 (Official Build) (64-bit). I don't know if this worked in previous versions