Opened 4 years ago

Closed 3 years ago

#12847 closed Bug (fixed)

Image dialog throws an error if opening it while link is selected

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone: CKEditor 4.4.8
Component: General Version: 4.0 Beta
Keywords: Cc:

Description

  1. Open replacebycode sample.
  2. Double click any link.
  3. Close the link dialog.
  4. Click the image button.

An error is thrown:

var childTagName = linkChildren.getItem( 0 ).getName();

"getName" is not a function.

Reproduced at least on IE9 and Chrome from 4.1. Most likely it's much older bug.

Change History (4)

comment:1 Changed 3 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0 Beta

I have been able to reproduce this issue from CKEditor 4.0 beta in all browsers.

comment:2 Changed 3 years ago by Feng Sun

I somehow try to get rid of the .getName() function, then the TypeError message is gone.

comment:3 Changed 3 years ago by Piotrek Koszuliński

As I explained in https://github.com/ckeditor/ckeditor-dev/pull/180#issuecomment-94259061 this does not seem to be the right solution.

comment:4 Changed 3 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.4.8
Resolution: fixed
Status: confirmedclosed

Fixed by #13351.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy