TinyMCE:API/tinymce.Editor/windowManager

From Moxiecode Documentation Wiki

Jump to: navigation, search

Property: windowManager

Summary

This property is contains an instance of the tinymce.WindowManager class. This class is used to open windows and alert boxes, it's highly recommended to use this class instead of using window.open or window.alert functions since it gives TinyMCE the ability to change these dialogs into custom DOM based versions with the inlinepopups plugin.

Examples

// Shows an alert message
tinyMCE.activeEditor.windowManager.alert('Hello world!');

// Opens a new dialog with the file.htm file and the size 320x240
// It also adds a custom parameter this can be retrieved by using tinyMCEPopup.getWindowArg inside the dialog.
tinyMCE.activeEditor.windowManager.open({
   url : 'file.htm',
   width : 320,
   height : 240
}, {
   custom_param : 1
});
Personal tools