Unplanned
Last Updated: 29 Apr 2020 09:40 by ADMIN
Katalina
Created on: 29 Apr 2020 09:36
Category: Kendo UI for jQuery
Type: Feature Request
0
Allow empty content in paragraph when there are tags with classes

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:

Input:

<p> <i class="fa fa-check" style="color: green;"></i> </p>

or

<p>&nbsp;<span class="customicon icon-iconname"></span>&nbsp;</p>

 

On save, the paragraph's content is stripped to:

<p>&nbsp;</p>

 

As a workaround, I can add dummy text in the paragraph:

https://dojo.telerik.com/oHIpusIL

0 comments