TinyMCE:API/tinyMCEPopup

From Moxiecode Documentation Wiki

Jump to: navigation, search

Class: tinyMCEPopup

TinyMCE popup/dialog helper class. This gives you easy access to the parent editor instance and a bunch of other things. It's highly recommended that you load this script into your dialogs. This class is only available in dialogs/popups that include the tiny_mce_popup.js file.

Events

onInit
On init event, gets fired when the page has been loaded.

Methods

close
Closes the current window.
execCommand
Executed a command on editor that opened the dialog/popup.
executeOnLoad
Will executed the specified string when the page has been loaded.
getLang
Returns a language item by key.
getParam
Returns a editor parameter/config option value.
getWin
Returns the reference to the parent window that opened the dialog.
getWindowArg
Returns a window argument/parameter by name.
openBrowser
Opens a filebrowser/imagebrowser this will set the output value from the browser as a value on the specified element.
pickColor
Executes a color picker on the specified element id.
requireLangPack
Loads a specific dialog language pack.
resizeToInnerSize
Resizes the dialog to the inner size of the window.
restoreSelection
Restores any stored selection.
storeSelection
Stores the current editor selection for later restoration.
Personal tools