|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TinyMCE_Control
Defined in TinyMCE_Control.class.js
Field Summary | |
Object |
cleanup
|
Object |
hasMouseMoved
|
Object |
isTinyMCE_Control
|
Object |
plugins
|
Object |
selection
|
Object |
settings
|
Object |
shortcuts
|
Object |
undoRedo
|
Object |
undoRedoLevel
|
Constructor Summary | |
TinyMCE_Control
(<Array> settings)
This is the TinyMCE editor control instance class. |
Method Summary | |
void
|
addPlugin(<string> n, p)
Adds a plugin to the editor instance. |
boolean
|
addShortcut(<string> m, <Object> k, <string> d, <string> cmd, <boolean> ui, <Object> va)
Adds a keyboard shortcut to a specific command. |
void
|
autoResetDesignMode()
Auto resets the design mode of the document if it gets lost. |
Object
|
execCommand(<string> command, <boolean> user_interface, <mixed> value)
Executes a command on the current instance. |
HTMLElement
|
getBody()
Returns the body element of a editor instance. |
DOMDocument
|
getDoc()
Returns the DOM document of a editor instance. |
HTMLElement
|
getFocusElement()
Returns the currently selected element. |
DOMRange
|
getRng()
Returns the browsers selections first range instance. |
DOMSelection
|
getSel()
Returns the browsers selection instance. |
Window
|
getWin()
Returns the window of a editor instance. |
boolean
|
handleShortcut(<DOMEvent> e)
Executes shortcuts based on the event information. |
boolean
|
hasPlugin(<string> n)
Returns true/false if the instance has the current plugin available. |
boolean
|
isDirty()
Returns true/false if the editor instance is dirty or not. |
boolean
|
isHidden()
Returns if the instance is hidden or not. |
boolean
|
queryCommandState(<string> c)
Returns a command specific state, for example if bold is enabled or not. |
mixed
|
queryCommandValue(<string> c)
Returns a command specific value, for example the current font size. |
void
|
repaint()
Repaints the editarea in Gecko browsers. |
void
|
setBaseHREF(<string> u)
Sets the base href url of the current document instance. |
void
|
switchSettings()
Switches the global TinyMCE settings to the current instance settings. |
Field Detail |
Object cleanup
Object hasMouseMoved
Object isTinyMCE_Control
Object plugins
Object selection
Object settings
Object shortcuts
Object undoRedo
Object undoRedoLevel
Constructor Detail |
TinyMCE_Control(<Array> settings)
settings
- Name/Value array of instance specific configuration settings.
Method Detail |
void addPlugin(<string> n, p)
n
- Plugin name to check for.
n
- TinyMCE plugin instance.
boolean addShortcut(<string> m, <Object> k, <string> d, <string> cmd, <boolean> ui, <Object> va)
m
- List of shortcut modifiers keys, for example "ctrl,alt".
k
- Shortcut key char for example "s" or a keycode value "13".
d
- Optional Shortcut description, this will be presented in the about dialog.
cmd
- Optional Command name to execute, for example mceLink or Bold.
ui
- Optional True/false state if a UI (dialog) should be presented or not.
va
- Optional command value, this can be anything.
void autoResetDesignMode()
Object execCommand(<string> command, <boolean> user_interface, <mixed> value)
command
- Command name to execute, for example mceLink or Bold.
user_interface
- True/false state if a UI (dialog) should be presented or not.
value
- Optional command value, this can be anything.
HTMLElement getBody()
DOMDocument getDoc()
HTMLElement getFocusElement()
DOMRange getRng()
DOMSelection getSel()
Window getWin()
boolean handleShortcut(<DOMEvent> e)
e
- Keyboard event to handle.
boolean hasPlugin(<string> n)
n
- Plugin name to check for.
boolean isDirty()
boolean isHidden()
boolean queryCommandState(<string> c)
c
- Command to query state from.
mixed queryCommandValue(<string> c)
c
- Command to query value from.
void repaint()
void setBaseHREF(<string> u)
u
- URL to set as base URL or null to remove it.
void switchSettings()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |