Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11944 closed Bug (invalid)

Inlinde editor on removed dom element error

Reported by: Catalin Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc: Piotrek Koszuliński

Description

Hi,

I have a backbone view where there is an inline editor. But if the view is closed right after the CKEDITOR.inline('editor') is called, but before it gets the element in the inline method, i get an "cannot read getEditor of undefined".

Can i somehow make it stop the inline method, cancel everything ? There is no instance created yet.

The error is on element.getEditor in the inline method. The dom element is removed and thus element is returned as undefined from the CKEDITOR.dom.element.get(element).

Change History (5)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Keywords: inline editor view element removed error removed
Status: newpending
Version: 4.3.2

How do you removed the view while synchronous code of CKEDITOR.inline is executed? It's impossible. Are you sure that the issue isn't somewhere else?

comment:2 Changed 10 years ago by Catalin

Now that you mention it that does sound silly. I think i have a asynchronous handler somewhere. I'll see what i find. Please don't close the issue yet.

comment:3 Changed 10 years ago by Catalin

It was actually an asynchronous issue. A colleague of mine setup the view incorrectly. Sorry for the unnecessary ticket.

comment:4 Changed 10 years ago by Catalin

Resolution: invalid
Status: pendingclosed

comment:5 Changed 10 years ago by Piotrek Koszuliński

No problem. I'm glad you solved it :).

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