TinyMCE:API/tinyMCEPopup/onInit
From Moxiecode Documentation Wiki
Contents |
[edit]
Event: onInit
[edit]
Summary
Gets fired when the page/dialog contents has been loaded.
[edit]
Syntax
<void> event_handler(<tinymce.Editor> ed)
[edit]
Parameters
- ed
- Editor instance that opened the dialog.
[edit]
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);
