tinymce.WindowManager

This class handles the creation of native windows and dialogs. This class can be extended to provide for example inline dialogs.

Examples

// 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
});

// Displays an alert box using the active editors window manager instance
tinyMCE.activeEditor.windowManager.alert('Hello world!');

// Displays an confirm box and an alert message will be displayed depending on what you choose in the confirm
tinyMCE.activeEditor.windowManager.confirm("Do you want to do something", function(s) {
   if (s)
      tinyMCE.activeEditor.windowManager.alert("Ok");
   else
      tinyMCE.activeEditor.windowManager.alert("Cancel");
});

Methods

Method Defined By
Constructs a new window manager instance.
tinymce.WindowManager
Opens a new window.
tinymce.WindowManager
Closes the specified window.
tinymce.WindowManager
Creates a instance of a class.
tinymce.WindowManager
Creates a confirm dialog.
tinymce.WindowManager
Creates a alert dialog.
tinymce.WindowManager