Roo.util.Observable Roo.Component Roo.HtmlEditorCore
Package: | Roo |
Defined In: | Roo/HtmlEditorCore.js. |
Class: | HtmlEditorCore |
Extends: | Roo.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
height : Number
(in pixels)
(in pixels)
|
Roo.HtmlEditorCore | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
resizable : String
's' or 'se' or 'e' - wrapps the element in a
Roo.resizable.
's' or 'se' or 'e' - wrapps the element in a
Roo.resizable. |
Roo.HtmlEditorCore | |
stylesheets : Array
url of stylesheets.
url of stylesheets. set to [] to disable stylesheets.
|
Roo.HtmlEditorCore | |
owner field
owner field
|
Roo.HtmlEditorCore | |
width : Number
(in pixels)
(in pixels)
|
Roo.HtmlEditorCore |
Method | Defined By | |
---|---|---|
new Roo.HtmlEditorCore
()
Create a new Roo.HtmlEditorCore
Create a new Roo.HtmlEditorCore
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
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.HtmlEditorCore | |
cleanTableWidths
()
cleanTableWidths.
cleanTableWidths.
Quite often pasting from word etc.. results in tables with column and widths. This does not work well on fluid HTML layouts - like emails. - so this code should hunt an destroy them.. |
Roo.HtmlEditorCore | |
cleanWord
()
Clean up MS wordisms.
Clean up MS wordisms...
|
Roo.HtmlEditorCore | |
destroy
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
:
Roo.Component
Disable this component.
Disable this component.
|
Roo.Component | |
enable
()
:
Roo.Component
Enable this component.
Enable this component.
|
Roo.Component | |
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.HtmlEditorCore | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
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.HtmlEditorCore | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
Roo.util.Observable | ||
hide
()
:
Roo.Component
Hide this component.
Hide this component.
|
Roo.Component | |
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.HtmlEditorCore | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
iterateChildren
(DomNode node, Function fn)
iterateChildren of a Node, calling fn each time, using this as the scole.
iterateChildren of a Node, calling fn each time, using this as the scole..
|
Roo.HtmlEditorCore | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
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.HtmlEditorCore | |
rangeIntersectsNode
()
Range intersection.
Range intersection.. the hard stuff...
'-1' = before '0' = hits.. '1' = after. [ -- selected range --- ] [fail] [fail] basically.. if end is before start or hits it. fail. if start is after end or hits it fail. if either hits (but other is outside. - then it's not |
Roo.HtmlEditorCore | |
Executes a Midas editor command on the editor document and performs necessary focus and
toolbar updates. |
Roo.HtmlEditorCore | |
Roo.util.Observable | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
show
()
:
Roo.Component
Show this component.
Show this component.
|
Roo.Component | |
syncValue
()
HTML Editor -> Textarea
Protected method that will not generally be called directly.
HTML Editor -> Textarea
Protected method that will not generally be called directly. Syncs the contents of the editor iframe with the textarea. |
Roo.HtmlEditorCore | |
toggleSourceEdit
(Boolean sourceEdit)
Toggles the editor between standard and source edit mode.
Toggles the editor between standard and source edit mode.
|
Roo.HtmlEditorCore | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
activate (Roo.HtmlEditorCore 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.HtmlEditorCore | |
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
beforepush (Roo.HtmlEditorCore 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.HtmlEditorCore | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
beforesync (Roo.HtmlEditorCore 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.HtmlEditorCore | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
editorevent (Roo.HtmlEditorCore 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.HtmlEditorCore | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
initialize (Roo.HtmlEditorCore this)
Fires when the editor is fully initialized (including the iframe)
Fires when the editor is fully initialized (including the iframe)
|
Roo.HtmlEditorCore | |
push (Roo.HtmlEditorCore 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.HtmlEditorCore | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component | |
sync (Roo.HtmlEditorCore 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.HtmlEditorCore |