Ext.form.Field Roo.form.HtmlEditor
Package: | Roo.form |
Defined In: | Roo/form/HtmlEditor.js. |
Class: | HtmlEditor |
Extends: | Ext.form.Field |
Options | Defined By | |
---|---|---|
createLinkText : String
The default text for the create link prompt
The default text for the create link prompt
|
Roo.form.HtmlEditor | |
defaultLinkValue : String
The default value for the create link prompt (defaults to http:/ /)
The default value for the create link prompt (defaults to http:/ /)
|
Roo.form.HtmlEditor | |
toolbars : Array
Array of toolbars.
Array of toolbars. - defaults to just the Standard one
|
Roo.form.HtmlEditor |
Method | Defined By | |
---|---|---|
new Roo.form.HtmlEditor
()
Create a new Roo.form.HtmlEditor
Create a new Roo.form.HtmlEditor
|
||
cleanHtml
(String html)
Protected method that will not generally be called directly.
Protected method that will not generally be called directly. If you need/want
custom HTML cleanup, this is the method you should override.
|
Roo.form.HtmlEditor | |
createToolbar
(HtmlEditor editor)
Protected method that will not generally be called directly.
Protected method that will not generally be called directly. It
is called when the editor creates its toolbar. Override this method if you need to add custom toolbar buttons.
|
Roo.form.HtmlEditor | |
Executes a Midas editor command directly on the editor document.
Executes a Midas editor command directly on the editor document.
For visual commands, you should use {link relayCmd} instead. This should only be called after the editor is initialized. |
Roo.form.HtmlEditor | |
getDocMarkup
()
Protected method that will not generally be called directly.
Protected method that will not generally be called directly. It
is called when the editor initializes the iframe with HTML contents. Override this method if you want to change the initialization markup of the iframe (e.g. to add stylesheets). |
Roo.form.HtmlEditor | |
insertAtCursor
(String text)
Inserts the passed text at the current cursor position.
Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated
to insert tRoo.
|
Roo.form.HtmlEditor | |
pushValue
()
Protected method that will not generally be called directly.
Protected method that will not generally be called directly. Pushes the value of the textarea
into the iframe editor. |
Roo.form.HtmlEditor | |
Executes a Midas editor command on the editor document and performs necessary focus and
toolbar updates. |
Roo.form.HtmlEditor | |
syncValue
()
Protected method that will not generally be called directly.
Protected method that will not generally be called directly. Syncs the contents
of the editor iframe with the textarea. |
Roo.form.HtmlEditor | |
toggleSourceEdit
(Boolean sourceEdit)
Toggles the editor between standard and source edit mode.
Toggles the editor between standard and source edit mode.
|
Roo.form.HtmlEditor |
Event | Defined By | |
---|---|---|
activate (HtmlEditor this)
Fires when the editor is first receives the focus.
Fires when the editor is first receives the focus. Any insertion must wait
until after this event.
|
Roo.form.HtmlEditor | |
beforepush (HtmlEditor this, String html)
Fires before the iframe editor is updated with content from the textarea.
Fires before the iframe editor is updated with content from the textarea. Return false
to cancel the push.
|
Roo.form.HtmlEditor | |
beforesync (HtmlEditor this, String html)
Fires before the textarea is updated with content from the editor iframe.
Fires before the textarea is updated with content from the editor iframe. Return false
to cancel the sync.
|
Roo.form.HtmlEditor | |
editmodechange (HtmlEditor this, Boolean sourceEdit)
Fires when the editor switches edit modes
Fires when the editor switches edit modes
|
Roo.form.HtmlEditor | |
editorevent (HtmlEditor this)
Fires when on any editor (mouse up/down cursor movement etc.
Fires when on any editor (mouse up/down cursor movement etc.) - used for toolbar hooks.
|
Roo.form.HtmlEditor | |
initialize (HtmlEditor this)
Fires when the editor is fully initialized (including the iframe)
Fires when the editor is fully initialized (including the iframe)
|
Roo.form.HtmlEditor | |
push (HtmlEditor this, String html)
Fires when the iframe editor is updated with content from the textarea.
Fires when the iframe editor is updated with content from the textarea.
|
Roo.form.HtmlEditor | |
sync (HtmlEditor this, String html)
Fires when the textarea is updated with content from the editor iframe.
Fires when the textarea is updated with content from the editor iframe.
|
Roo.form.HtmlEditor |