﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1674	Double Click Select link in Firefox does not register as a link selected	Mike		"In Firefox, if you select a link by double clicking on it, the MoveToAncestorNode() or hasAncestorNode() functions do not return the anchor.  If the same selection is made by  selecting normally (dragging the selection), it registers just fine.  Example: if you double click a link to select it, the ""Unlink"" button is disabled, but should be enabled.   I have found the following code fixes this problem:


// new code[[BR]]
var range = FCK.EditorWindow.getSelection().getRangeAt(0);[[BR]]
if (!range.collapsed && range.startContainer == range.endContainer && 	range.startOffset - range.endOffset <= 1 && range.startContainer.hasChildNodes())
	selectedElement = range.startContainer.childNodes[range.startOffset];
	

Putting somewhere in the GetSelectedElement() function will probably fix both HasAncestorNode() and MoveToAncestorNode() for Anchors, but not sure if it will break anything else.

I am seeing this behavior in Firefox 2.0.0.11 on Windows XP Pro SP2."	Bug	closed	Normal		General	FCKeditor 2.5.1	wontfix		
