Hi,
In config.js I have specified what tags I do not wish to allow in the following way:
config.removeFormatTags = "img,a,font,strike,table,th,td,tbody,thead,tfoot,h1,h2,h3,h4,h5,h6,hr,label,input,script,form,label,legend,select,optgroup,option,textarea,blockquote,button,noscript,sub,sup,caption,title";
I then added on paste event like this:
var editor = CKEDITOR.instances.editor1;
editor.on('paste', function(evt) {
editor.execCommand('removeFormat', evt.data.dataValue);
});
When I use the standard version of CKEditor, the unwanted tags get stripped out when I'm pasting from word. However, when I use the advanced version of CKEditor, not all the unwanted tags get stripped out. For example, image tags get stripped out, but the strike tag doesn't.
Does anyone have any light they could shed upon this issue?
Thanks for your help.
Cheers,
Kaye.