I'm trying to add the necessary html to the CkEditor editor, but nothing happens:
var html = '<a rel="group" class="fancybox" href="'+large_url+'">'+ '<i style="background-image: url('+small_url+')" class="uiMediaThumbImg"></i>'+ '</a>'; CKEDITOR.instances.message_text.insertHtml(html, "unfiltered_html"); Although if in html there is, for example, <p>Какой-то html</p> , then everything will be displayed correctly in the editor. Apparently, pouring on the piece, where there is a tag <i> .
Tell me, what's the problem?