Hi,
I am using ckeditor through the editMe Extension for PHP Yii Framework.
I use html templates to set a default value for an editor so sometimes there are <style>...</style> Tags inside this html template.
At first visit everything looks fine but when I save the content, submit the form, then ckeditor, especially the bulit in html filter, strips out the <style> tags. You can imagine how a beautiful html template looks without any style information... ;)
I allready have done lots of research to find a solution. But until now without success.
I tried manipulating the html filter:
CKEDITOR.on('instanceReady', function(ev){ var editor = ev.editor; var dataProcessor = editor.dataProcessor; var htmlFilter = dataProcessor && dataProcessor.htmlFilter; htmlFilter.addRules( { elements : { style: function(element) { return true; }, } }); });
But it doesn't work.
Any ideas how I can keep my style tags? :)
Lo3ty