﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2365	Can't Add URL to Image	spgard		"Seems to be very similar to Ticket 396, but I could duplicate it on the demo site and the nightly build using Opera 9.51, Build 10081 on Win XP SP 2.

- Add any image, such as a smiley.[[BR]]
- Highlight the image and click the Insert/Edit Image button.[[BR]]
- Click the Link tab.[[BR]]
- Enter http://www.yahoo.com (or any URL).[[BR]]
- Click OK.  Nothing happens.[[BR]]


The error console says:[[BR]]
{{{
JavaScript - http://www.fckeditor.net/fckeditor/2.6.2/editor/fckdialog.html [[BR]]

Event thread: click[[BR]]

Error:[[BR]]

name: TypeError[[BR]]

message: Statement on line 82: Cannot convert undefined or null to Object[[BR]]

Backtrace:[[BR]]

  Line 82 of linked script http://www.fckeditor.net/fckeditor/2.6.2/editor/dialog/common/fck_dialog_common.js: In function SetAttribute[[BR]]

    		element.setAttribute( attName, attValue, 0 ) ;	// 0 : Case Insensitive[[BR]]

  Line 265 of linked script http://www.fckeditor.net/fckeditor/2.6.2/editor/dialog/fck_image/fck_image.js: In function Ok[[BR]]

    		SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;[[BR]]

  Line 663 of inline#1 script in http://www.fckeditor.net/fckeditor/2.6.2/editor/fckdialog.html[[BR]]

    		if ( frmMain.Ok && frmMain.Ok() )[[BR]]

  Line 1 of function script [[BR]]

    Ok();[[BR]]

  ...
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'
}}}


The cause of the failure seems to be that the line:[[BR]]


{{{
oLink = oEditor.FCK.CreateLink( sUri )[0] ;
}}}

returns undefined."	Bug	closed	Normal		UI : Dialogs	3.4.1 (SVN - trunk)	worksforme	Confirmed Opera	
