tinymce.ContentEvent

Inheritance
This class is the event object send when the content events occurs such as GetContent/SetContent.

Examples

tinymce.activeEditor.on('GetContent', function(e) {
    console.log(e.content);
});

Properties

Property Defined By
HTML contents from the editor or to be put into the editor
tinymce.ContentEvent
Optional element that the load/save event is for
tinymce.ContentEvent
Format of the contents normally "html"
tinymce.ContentEvent
Optional state gets added for the setContent event then it's set to true
tinymce.ContentEvent
Optional state gets added for the load event then it's set to true
tinymce.ContentEvent
Optional state gets added for the save event then it's set to true
tinymce.ContentEvent
Optional state gets added for the getContent event then it's set to true
tinymce.ContentEvent
The event type name for example "click"
tinymce.Event

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