Block filler is not removed when converting <pre><code>
#7259
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
package:code-block
resolution:expired
This issue was closed due to lack of feedback.
squad:core
Issue to be handled by the Core team.
status:stale
type:bug
This issue reports a buggy (incorrect) behavior.
This is a follow-up from #7240
📝 Provide detailed reproduction steps (if any)
editor.getData() // "<pre><code> </code></pre>"
editor.setData( "<pre><code> </code></pre>" )
✔️ Expected result
You should get the editor with an empty code block (, where you cannot move the caret between any characters).
❌ Actual result
The editor is created with one non-breaking space inside code block;
📃 Other details
Undesired, but expected behavior is covered by this test:
ckeditor5/packages/ckeditor5-code-block/tests/codeblockediting.js
Lines 892 to 900 in 40629c5
More details, with investigation results at #7240 (comment)
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: