EDITOR VARIABLES
editor:
the top most container variable having other variables and methods in it.
In 6.x this was changed to BUE
editor.active:
currently active or last used editor instance. When a button is clicked or a textarea is focused,
the corresponding editor instance becomes the editor.active. If there are multiple editor instances, accesskeys
are switched to work on the editor.active.
editor.active is widely used in javascript buttons since the methods of the current editor instance are accessed
using it. Each editor instance has its own variables and methods that can(should) be used by javascript buttons.
See EDITOR INSTANCE
editor.dialog:
dialog object of the editor used like a pop-up window for getting user input or displaying data.
It has its own variables and methods. See EDITOR DIALOG
BUE.templates
container for editor templates(configurations, buttons and interface)
BUE.quickPop
another dialog object which has no title or close button.
In order to open a quick-pop use BUE.quickPop.open(content, effect)
EDITOR METHODS
editor.processTextarea(T):
integrates the editor into the textarea T. This can be used for dynamic editor integration at any time after page load.
In 6.x this method requires an additional parameter referring to a template id in BUE.templates
BUE.processTextarea(T, tplid)
editor.openPopup(id, title, content):
opens a pop-up dialog having the given "id", titled as "title" and containing the "content". Returns the js object representing the pop-up(a html table object).
This pop-up object has its internal open(title, content, keeppos) and close() methods which can be used for further open and close operations. if keeppos is set, pop-up opens at previous position, otherwise position is reset.
Since pop-up object is a html table object, it has all the methods and properties of a regular table.
The difference between a pop-up and editor.dialog is that editor.dialog can only have one instance visible at a time, and it doesnt allow textarea editing when it is open.
In 6.x this method accepts an additional parameter referring to one of jQuery effects (slideDown, fadeIn). In addition, keeppos was replaced with the new effect parameter for open/close methods.
editor.createPopup(id, title, content):
This method is used by openPopup method. Creates and returns the pop-up object for further use.(does not open it)
See the next page for EDITOR INSTANCE object that is a must-read in order to create javascript buttons.
Editorial corrections:
Editorial corrections: (errors are highlighted)
currently active or last used editor istance. When a button is clicked or a textarea is focused,
the corresponding editor instance becomes the editor.active. If there are multiple editor instances, accesskeys