The document with just <script>
or <style>
element becomes empty #11247
Closed
Description
📝 Provide detailed reproduction steps (if any)
In ckeditor5-html-support/tests/manual/ghs-all-features.html
:
- Set in Source Editing mode (whitespace before or after does not matter):
<script>foo</script>
or
<style>foo</style>
- Switch to regular mode and then back to source editing mode (or call
editor.getData()
).
✔️ Expected result
Same data as set.
❌ Actual result
Empty string.
Activity