A comma separated list of elements attributes to be removed when executing the "remove format" command. ... Default Value: 'class,style,lang,width,height,align,hspace,valign'
All it does is remove the pre-configured format definitions from the text created in CKEditor *when you click the Remove Format button*. It does not magically block certain attributes from entering them into your text.
The removeFormatAttributes configuration setting does not accept a "true" value. See the description from the API:
A comma separated list of elements attributes to be removed when executing the "remove format" command. ... Default Value: 'class,style,lang,width,height,align,hspace,valign'
You can use it to define the list of attributes that will be removed from the text once you click the Remove Format toolbar button.
Re: removeFormatAttributes not stripping style=""
Remove Formathttp://docs.cksource.com/CKEditor_3.x/U ... ove_Format
Remove Format
removeFormatAttributes
Remove Format
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: removeFormatAttributes not stripping style=""
Re: removeFormatAttributes not stripping style=""
editor.dataProcessor.htmlFilter.addRules( { attributeNames : [ 'style', '' ] } );Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: removeFormatAttributes not stripping style=""