Opened 15 years ago

Last modified 15 years ago

#4445 closed New Feature

Support callback param for CKEDITOR.editor::setData — at Version 1

Reported by: Garry Yao Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.1
Component: General Version:
Keywords: Confirmed Review+ Cc:

Description (last modified by Garry Yao)

In order to comply with the asynchronous nature of 'setData' in wysiwyg mode, the user need to listen for a internal "contentDom" event for the very early access to a fully loaded document, we should provide a simpler form API like editor.setData( data, callback ).

Correspondingly, the 'afterSetData' event which already existed now should be fired right before we invoke this callback function, so user could make their choice between these two approaches.

Change History (2)

comment:1 Changed 15 years ago by Garry Yao

Description: modified (diff)
Owner: set to Garry Yao
Status: newassigned

Tidied up the description a bit.

Changed 15 years ago by Garry Yao

Attachment: 4445.patch added
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