TinyMCE:API/tinyMCEPopup/onInit

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Event: onInit

Summary

Gets fired when the page/dialog contents has been loaded.

Syntax

<void> event_handler(<tinymce.Editor> ed)

Parameters

ed
Editor instance that opened the dialog.

Examples

// Alerts the selected contents when the dialog is loaded
tinyMCEPopup.onInit.add(function(ed) {
   alert(ed.selection.getContent());
});

// Executes the init method on page load in some object using the SomeObject scope
tinyMCEPopup.onInit.add(SomeObject.init, SomeObject);
Personal tools