Opened 11 years ago

Last modified 11 years ago

#10147 confirmed Task

Editable#setup called twice during wysiwygarea initialization

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone:
Component: Core : Editable Version: 4.0 Beta
Keywords: Cc:


It is first time called in editable's constructor, second in onDomReady inside wysiwygarea plugin.

This may not be a wrong behaviour, though it looks like one. We should investigate whether after the first call every changes (new listeners, etc) are cleaned up before second call. This maybe happen thanks to clean up done by setData which is done in onLoad function inside 'wysiwyg' mode (not class) constructor.

If everything is ok, appropriate docs should be written to avoid confusion in the future. Why editable#setup has to be called for the first time and why for the second time?

Change History (1)

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

Status: newconfirmed
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