﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
222	extraneous tags are left when selecting styles	gregsmith154	Frederico Caldeira Knabben	"When applying a predefined style from the dropdown box it leaves behind or adds tags that make the code invalid.

Say I have <h1>This is a heading</h1> and I want to change it to heading style_2.

I highlight 'This is a heading' and select 'heading style_2' from the dropdown box.

I expect to get <h1 style=""style_2"">This is a heading</h1>.

What I actually get is <h1><h1 style=""style_2"">This is a heading</h1></h1>

The same seems to happen with other tags so if I start with <p>This is a heading</p> I get <p><h1 style=""style_2"">This is a heading</h1></p> which obviously isn't valid.

If I go to source view and back again it will sometimes change to:
<h1></h1>
<h1 style=""style_2"">This is a heading</h1>
which isn't quite as bad but still not ideal.

I've already taken out font sizing and font face from the user as this used depreciated tags and left an invalid mess of code behind.  It'd be great to have a time when all code from the editor is always going to remain 100% valid.  Thanks for supporting this mostly great project."	Bug	closed	Normal	FCKeditor 2.5 Beta	Core : Styles	FCKeditor 2.4	fixed	Confirmed	
