Thread:Extension talk:WYSIWYG/How to strip unwanted styles ?/reply (6)

It works. I made a custom "filter" plugin, this way :
 * create the folder WYSIWYG/ckeditor/plugins/customfilter
 * create in this folder a plugin.js file with the following content :

CKEDITOR.plugins.add('customfilter', {   init: function (editor) {        var pluginName = 'customfilter';        editor.dataProcessor.dataFilter.addRules({ elements : {	     u : function( element ) {                   delete element.name; }           }        });        editor.dataProcessor.htmlFilter.addRules({ elements : {	     u : function( element ) {                   delete element.name; }           }        });    } });

It removes any   tag, while keeping its content (in my particular case I don't want wiki users to be able to underline text).

EDIT : I was stupid ! It was possible to put this directly in config.js