Ckeditor removes font icon

Sandro Rizzetto asked on April 19, 2018 16:57

(kentico 11) If I write in the source editor something like this

<div><i class="icon-question"></i></div>

after saving (or only switching source code/design mode) the icon is replaced by a &nbsp;

<div>&nbsp;</div>

Any setting to avoid this?

Thanks

Correct Answer

Zach Perry answered on April 19, 2018 20:32

It will delete empty tags, I think there is a setting for it somewhere but I forget where it is.

You should be able to do something like this and have it work:

<div><i class="icon-question">&nbsp;</i></div>

EDIT: looks like it is part of the config file for the editor

0 votesVote for this answer Unmark Correct answer

Recent Answers


Sandro Rizzetto answered on April 20, 2018 08:24

Thanks Zach

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.