tinymce.WindowManager

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

Example

Public Methods

Method Defined By
Constructs a new window manager instance.
WindowManager
alert(t:String, cb:function, s:Object):void
Creates a alert dialog.
WindowManager
close(w:Window):void
Closes the specified window.
WindowManager
confirm(t:String, cb:function, s:Object):void
Creates a confirm dialog.
WindowManager
createInstance(cl:String):Object
Creates a instance of a class.
WindowManager
open(s:Object, p:Object):void
Opens a new window.
WindowManager

Method details

WindowManagerconstructor

public function WindowManager(ed:Editor)
Constructs a new window manager instance.

Parameters

ed:Editor Editor instance that the windows are bound to.

alertmethod

public function alert(t:String, cb:function, s:Object):void
Creates a alert dialog. Please don't use the blocking behavior of this native version use the callback method instead then it can be extended.

Parameters

t:String Title for the new alert dialog.
cb:function Callback function to be executed after the user has selected ok.
s:Object Optional scope to execute the callback in.

Example

closemethod

public function close(w:Window):void
Closes the specified window. This will also dispatch out a onClose event.

Parameters

w:Window Native window object to close.

confirmmethod

public function confirm(t:String, cb:function, s:Object):void
Creates a confirm dialog. Please don't use the blocking behavior of this native version use the callback method instead then it can be extended.

Parameters

t:String Title for the new confirm dialog.
cb:function Callback function to be executed after the user has selected ok or cancel.
s:Object Optional scope to execute the callback in.

Example

createInstancemethod

public function createInstance(cl:String):Object
Creates a instance of a class. This method was needed since IE can't create instances of classes from a parent window due to some reference problem. Any arguments passed after the class name will be passed as arguments to the constructor.

Parameters

cl:String Class name to create an instance of.

Returns

Object - Instance of the specified class.

Example

openmethod

public function open(s:Object, p:Object):void
Opens a new window.

Parameters

s:Object Optional name/value settings collection contains things like width/height/url etc.
p:Object Optional parameters/arguments collection can be used by the dialogs to retrive custom parameters.