Hello there =)
I'm trying to use CKEditor to make a back end interface for users who don't know html, and I want to add some special chars. In fact, I'm trying to allow users to insert glyphicons.
I added in the config.js file those lines:
config.allowedContent = true; config.extraAllowedContent = 'span(*)'; config.specialChars = ["<span class='icon-large icon-cake'></span>", "<link href='bootstrap/css/bootstrap.icon-large.min.css' rel='stylesheet'>"]; // adding the css like this is the only way I found to preview the span in the specialChars box // maybe there is a better way to do it config.contentsCss = ['ckeditor/contents.css', 'bootstrap/css/bootstrap.icon-large.min.css'];
But when I try to insert my special char <span>, only plain text is pasted on the textarea, not the html.
Is there a way to allow it?
Thank you,
Bjorge
PS: forgive my poor english, I'm french =P

Magicharacters
Generally you have to /<span/> or something, however its possible that this is blocked to stop injection.
Im sure someone will be along soon with a better answer, however you might want to look in to how ckeditor stripslashes etc.