As a developer, I want to be able to add paragraphs with empty content and not have it stripped, so that I can add custom functionality, like icons.
I want to be able to control if the paragraph's content should be stripped or have the editor allow empty elements when they have classes.
Currently, if I add markup similar to a font awesome icon or some custom icon in a paragraph, there is a function, _fillEmptyElements, that strips the content of the paragraph:
<p> <i class="fa fa-check" style="color: green;"></i> </p>
<p> <span class="customicon icon-iconname"></span> </p>
On save, the paragraph's content is stripped to:
As a workaround, I can add dummy text in the paragraph: