Font Awesome supports List Icons, which looks pretty nice and which is easy to handle and to setup. Example:
<ul class="fa-ul">
<li><i class="fa-li fa fa-dot-circle-o"></i> Point 1</li>
<li><i class="fa-li fa fa-dot-circle-o"></i> Point 2</li>
<li><i class="fa-li fa fa-dot-circle-o"></i> Point 3</li>
</ul>
That will look like this:
The Problem is the TinyMCE-Editor, which deletes unknown/unnecessary code and here the "empty" <i>
-Snippet:
<i class="fa-li fa fa-dot-circle-o"></i>
I know, there are the options cleanup and verify_html to disallow cleaning up the inserted code.
tinymce.init({
cleanup : false,
verify_html : false
});
This works, but it's quite complicated, nearly to impossible to edit after that the unordered lists in the TinyMCE-Editor. If I delete "Point 1" or overwrite the text, TinyMCE will also delete the <i>
-Tag before (even if I'm still in the <li>
-line). Basically there are two spaces before "Point 1". But this is hard to explain my customers.
Is there a solution or a tiny hack for this to prevent deleting the snippet in the editor? In my case every List-Point has the formation with the Icon. So it's okay to ADD ALWAYS the <i>
-Tag after <li>
. Is this possible?