Opened 14 years ago

Last modified 12 years ago

#4705 confirmed New Feature

Add a "resized" event

Reported by: rmacfadyen Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


It would be handy if the resize plug in fired a "resized" event at the end of the resize.

More or less in the dragEndHandler do the following:

function dragEndHandler(evt) {
    CKEDITOR.document.removeListener('mousemove', dragHandler);
    CKEDITOR.document.removeListener('mouseup', dragEndHandler);

    if (editor.document) {
        editor.document.removeListener('mousemove', dragHandler);
        editor.document.removeListener('mouseup', dragEndHandler);
    } 'resized' ); // let folks know the resize has finished

This would allow clients to persist the size of the editor if they wished to (trying to persist after each individual resize event is too resource intensive).

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

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