tinymce.ResizeEvent

Inheritance
This class is the event object sent when objects gets resized within the editor.

Examples

tinymce.activeEditor.on('ObjectResizeStart', function(e) {
    if (e.target.nodeName == 'IMG') {
        // Prevent resize
        e.preventDefault();
    }
});

tinymce.activeEditor.on('ObjectResized', function(e) {
    console.log(e.target, e.width, e.height);
});

Properties

Property Defined By
Current height of the object before or after resize
tinymce.ResizeEvent
Current element that is to be resized or has been resized
tinymce.ResizeEvent
The event type name for example "click"
tinymce.Event
Current width of the object before or after resize
tinymce.ResizeEvent

Methods

Method Defined By
Returns true/false if the default action is to be prevented or not
tinymce.Event
Returns true/false if the event immediate propagation is stopped or not
tinymce.Event
Returns true/false if the event propagation is stopped or not
tinymce.Event
Prevents the default action of an event to be executed
tinymce.Event
Prevents the event from propagating to listeners on the same object
tinymce.Event
Stops the event from propagating up to listeners on parent objects
tinymce.Event