﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
667	[SS] Combination of a link and a style	anonymous		"Following situation:

Prerequisites
 * developer runtime (uncompiled scripts)
 * fckstyles.xml

{{{
<Style name=""Fat link"" element=""a"">
    <Attribute name=""class"" value=""aBold"" />
</Style>
}}}

 1. there is nothing more in the editor then 2 plain words without any formatting
 2. select one word and create a hyperlink using toolbar ""Insert/Edit link""
 3. enter some target as usual, the hyperlink is created
 4. now while the text is still selected choose the ""Fat link"" from the toolbar style pulldown menu

'''IE behavior'''

crashes with

{{{
Unknown runtime error
Line 28 in fckstyledef_ie.js > e.innerHTML =
oRange.htmlText ;
May be it is a IE bug...
}}}

'''FF behaviour'''

Firefox has 2 conditions

 1. if the text is still selected it messes up the code

{{{
New document -> New <a class=""aBold""><a
href=""bala.ccc/"">document</a></a><a
href=""bala.ccc/"" />
}}}

 2. if the word has been re-selected it is ok (problem with selection cache?)

In both browsers if the style choise is done first, there are no problems.

This problem is not as big in new documents as in old stuff where hyperlinks exist and have to be ""re-styled"" or modified.

Best regards

SelfMan
----
Moved from SF:[[BR]]
http://sourceforge.net/tracker/index.php?func=detail&aid=1249695&group_id=75348&atid=543653"	Bug	new	Normal		Core : Styles			SF Discussion	Frederico Caldeira Knabben bngobngo@…
