JSFiddle - React, Tailwind, and code Playground
by Kevin Kamel
HTML
<script src="https://cdn.ckeditor.com/4.5.5/standard-all/ckeditor.js"></script>
<textarea cols="80" rows="10" id="editor1" name="editor1">
<p>Iteratively using the source view control over and over will cause spurious paragraph nodes containing a non-breakable space to appear in the document. Each successive cycle causes these elements to duplicate, rapidly corrupting the document</p>
<p>
The issue appears related to auto-paragraphing. Only certain tags are affected, seemingly based on how they are defined within the dtd. Note that randomly generated tags such as "broken" also introduce the behavior.
</p>
<p>
The issue is entirely absent when switching enter mode over to BR.
</p>
<summary>Summary HTML5 tag, below this tag is where the horrible duplication occurs</summary>
<broken>Fake tags (in this case "broken") also causes the issue</broken>
</textarea>
JavaScript
var html5Tags = ['div', 'article','aside','bdi','details','figcaption','figure','footer','header','main','mark','menuitem','meter','nav','progress','section','summary','wbr','broken'];
var extraAllowedContent = '';
html5Tags.forEach(function(tagName) {
extraAllowedContent += tagName + '[*]{*}(*);';
});
CKEDITOR.config.extraAllowedContent = extraAllowedContent;
CKEDITOR.replace( 'editor1' );