The textselection plugin adds empty paragraphs when switching from normal view to source view after a code snippet has been added. The fix for #5 only fixed the case when the editing area is empty.
Reproduction path:
clone ckeditor 4.4.1
add the textselection plugin
enable the textselection and codesnippet plugin in samples/replacebycode.html
(configuration: { extraPlugins: 'textselection,codesnippet' } )
The textselection plugin adds empty paragraphs when switching from normal view to source view after a code snippet has been added. The fix for #5 only fixed the case when the editing area is empty.
Reproduction path:
Expected: the source is:
Actual: the source is: