Opened 10 years ago

Last modified 7 years ago

#4705 confirmed New Feature

Add a "resized" event

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

Description

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);
    }
    editor.fire( '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 7 years ago by Jakub Ś

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