﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
640	Apply style to 2 or more table cells generates JS error	mardoek@…		"When you select 2 or more cells and apply a style to it
generates a error on the line:


{{{
67 of fck_actions.js
oTextRange.pasteHTML( oFont.outerHTML ) ;
}}}


It can be fixed, when you change the if statement
above to:
But this part of the IF-Statement is removed, I don't
know the use of it:

{{{
oFirstChild.outerHTML == oFont.innerHTML &&
}}}


Code:

{{{
if (oFirstChild.nodeType == 1 && (oFirstChild.tagName == ""SPAN""
			|| oFirstChild.tagName == ""FONT""
			|| oFirstChild.tagName == ""P""
			|| oFirstChild.tagName == ""DIV""
			|| oFirstChild.tagName == ""TABLE"" //Added For the support of tables..
			|| oFirstChild.tagName == ""TR""
			|| oFirstChild.tagName == ""TD"")) //Added For the support of tables..
{
	oParent.className =
		command.value ;
}
else
{
	oFont.className = command.value ;
	oTextRange.pasteHTML( oFont.outerHTML ) ;
}
}}}
----
Moved from SF:[[BR]]
http://sourceforge.net/tracker/index.php?func=detail&aid=780078&group_id=75348&atid=543653"	Bug	closed	Normal	FCKeditor 2.5 Beta	General		fixed	SF	Frederico Caldeira Knabben
