Opened 18 years ago

Last modified 15 years ago

#2365 closed Bug

Can't Add URL to Image in Opera — at Initial Version

Reported by: spgard Owned by:
Priority: Normal Milestone:
Component: UI : Dialogs Version: 3.4.1
Keywords: Opera Cc:

Description

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.
  • Highlight the image and click the Insert/Edit Image button.
  • Click the Link tab.
  • Enter http://www.yahoo.com (or any URL).
  • Click OK. Nothing happens.

The error console says:

JavaScript - http://www.fckeditor.net/fckeditor/2.6.2/editor/fckdialog.html

Event thread: click

Error:

name: TypeError

message: Statement on line 82: Cannot convert undefined or null to Object

Backtrace:

Line 82 of linked script http://www.fckeditor.net/fckeditor/2.6.2/editor/dialog/common/fck_dialog_common.js: In function SetAttribute

element.setAttribute( attName, attValue, 0 ) ; 0 : Case Insensitive

Line 265 of linked script http://www.fckeditor.net/fckeditor/2.6.2/editor/dialog/fck_image/fck_image.js: In function Ok

SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;

Line 663 of inline#1 script in http://www.fckeditor.net/fckeditor/2.6.2/editor/fckdialog.html[[BR]]

if ( frmMain.Ok && frmMain.Ok() )

Line 1 of function script

Ok();

...

stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'

The cause of the failure seems to be that the line:

oLink = oEditor.FCK.CreateLink( sUri )[0] ;

returns undefined.

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy