- Issue created by @harikumar_prft
If I understand the report clearly, this is losing input data rather than stored data so it's actually major priority, not critical β .
Have you tested this on the CKEditor 5 demonstrations, to find out if this is actually not a Drupal bug?
@cilefen Thanks for your help.
Yes, we tested with CKEditor5 demo.
Source code editing and HTML support (https://ckeditor.com/ckeditor-5/demo/html-support)
On this demo, we edited the html code
<ul> <!--<li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html">HTML embed</a> </li>--> <li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/style.html">Styles</a> </li> <li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html">General HTML Support</a> </li> </ul>
and came out of source edit.
Then we again enable the source edit the code looks like this:
<ul> <li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/style.html">Styles</a> </li> <li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html">General HTML Support</a> </li> </ul>
the commented
<li> <a target="_blank" rel="noopener noreferrer" href="https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html">HTML embed</a> </li>
was completed but lost from the editor. How can we prevent this from losing our commented code? Please provide any suggestion
I think the next step is to look for CKEditor bug reports of the same.
I am tentatively marking this as upstream, and will see if the component maintainer agrees.