Availability: All versions
Description: A wproEditor object represents an editor and contains all the properties and methods for interacting with an editor.
Throughout this manual we refer to a wproEditor object simply as an editor object.
There are several ways to access an editor object:
In each example editorName represents the name of the editor you wish to access.
Using the WPro.editors collection:
Or if you don't know the name of an editor you can use a numeric index where 0 represents the first editor on the page, 1 the second, 2 the third and so on:
If there are several editors on the page you can access the currently active editor using:
Using the form element:
For this to work the editor must be displayed within a form
The old method from version 2.x where each editor object was accessed through a global variable should no longer be used.
From within a dialog plugin the current editor is available using the following:
The WPro object is also available from within a dialog plugin.
Properties and methods: