removeformat feedback

On Sun, 9 Mar 2008, Simon Pieters wrote:
> 
> I tested Opera and Mozilla, and they do different things, and both are 
> IMHO undesirable (e.g. Opera removes links, Mozilla removes bold but not 
> italic). Removeformat is, AIUI, intended to get rid of style information 
> without loosing "semantics" after pasting in a chunk of text from 
> another application. I would argue that <b> and <i> should not be 
> removed since they are generally tied to the content while font family 
> is generally not.

On Sun, 9 Mar 2008, Alfonso Martínez de Lizarrondo wrote:
>
> In FCKeditor the RemoveFormat command has been rewritten so everything 
> is done by code without relying on the browser due to those huge 
> differences that didn't really cleaned up the format.
> 
> Now the developer can choose the elements and attributes that must be 
> removed, there's really no other way to do it because each developer 
> wants a different set of removed elements:
> 
> // Only inline elements are valid.
> FCKConfig.RemoveFormatTags =
> 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'
> ;
> 
> // Attributes that will be removed
> FCKConfig.RemoveAttributes =
> 'class,style,lang,width,height,align,hspace,valign' ;

On Sun, 9 Mar 2008, Mihai Sucan wrote:
> 
> As Alfonso said, any mature WYSIWYG editor does not rely on 
> removeformat. Since then I have included my ReTidy cleaner. 
> Unfortunately, good solutions are not available within the UA. Perhaps I 
> should port my ReTidy to JavaScript.

Based on the above, I have continued to not include the removeformat 
command in HTML5.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 19 August 2008 22:42:21 UTC