#2365: Can't Add URL to Image in Opera
--------------------------------+-------------------------------------------
Reporter: spgard | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version:
Keywords: Opera, Image, Link |
--------------------------------+-------------------------------------------
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'[[BR]][[BR]]
The cause of the failure seems to be that the line:[[BR]]
{{{
oLink = oEditor.FCK.CreateLink( sUri )[0] ;
}}}
returns undefined.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2365>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac