cirandas.net

ref: master

public/javascripts/tinymce/tools/docs/tinymce.ResizeEvent.js


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 * This class is the event object sent when objects gets resized within the editor.
 *
 * @class tinymce.ResizeEvent
 * @extends tinymce.Event
 * @example
 * 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);
 * });
 */

/**
 * Current element that is to be resized or has been resized.
 *
 * @property {DOMElement} target
 */

/**
 * Current width of the object before or after resize.
 *
 * @property {Number} width
 */

/**
 * Current height of the object before or after resize.
 *
 * @property {Number} height
 */