A boolean indicating if a return key pressed in a paragraph creates
another paragraph or just inserts a
at the caret
true if CR in a paragraph creates a new paragraph
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
checkSelectionStateForAnonymousButtons() may refresh editing UI such as resizers, inline-table-editing UI, absolute positioning UI for current Selection and focus state. When this method shows or hides UI, the editor (and/or its document/window) could be broken by mutation observers. FYI: Current user in script is only BlueGriffon.
Return a new element with default attribute values
This does not rely on the selection, and is not sensitive to context.
Used primarily to supply new element for various insert element dialogs (Image, Link, NamedAnchor, Table, and HorizontalRule are the only returned elements as of 7/25/99)
The new element created.
The HTML tagname Special input values for Links and Named anchors: Use "href" to get a link node (an "A" tag with the "href" attribute set) Use "anchor" or "namedanchor" to get a named anchor node (an "A" tag with the "name" attribute set)
GetElementOrParentByTagName() returns an inclusive ancestor element whose name matches aTagName from aNode or anchor node of Selection to
element or null if there is no element matching with aTagName.If an element which matches aTagName, returns an Element. Otherwise, nullptr.
The tag name which you want to look for. Must not be empty string. If "list", the result may be , or
If non-null, this starts to look for the result from it. Otherwise, i.e., null, starts from anchor node of Selection.
getInlinePropertyWithAttrValue() gets aggregate properties of the current selection. All object in the current selection are scanned and their attributes are represented in a list of Property object.
the property to get on the selection
the attribute of the property, if applicable. May be null. Example: aProperty="font", aAttribute="color"
if aAttribute is not null, the value of the attribute. May be null. Example: aProperty="font", aAttribute="color", aValue="0x00FFFF"
[OUT] PR_TRUE if the first text node in the selection has the property
[OUT] PR_TRUE if any of the text nodes in the selection have the property
[OUT] PR_TRUE if all of the text nodes in the selection have the property
getListItemState returns what list item type is in the selection.
True if there is more than one type of list item, or
if there is some list and non-list
XXX This ignores -
element selected state.
For example, even if -
and <dt>
are selected,
this is set to false.
true if "li" list items are selected.
true if "dt" list items are selected.
true if "dd" list items are selected.
getListState returns what list type is in the selection.
True if there is more than one type of list, or if there is some list and non-list
The company that employs me. No, really, it's true if an "ol" list is selected.
true if an "ul" list is selected.
true if a "dl" list is selected.
getSelectedElement() returns a "selected" element node. "selected" means:
A "selected" element.
Case-insensitive element name. If empty string, this returns any element node or null. If "href", this returns an element which has non-empty "href" attribute or null. If "anchor", this returns an element which has non-empty "name" attribute or null. Otherwise, returns an element node whose name is same as aTagName or null.
Insert an element, which may have child nodes, at the selection Used primarily to insert a new element for various insert element dialogs, but it enforces the HTML 4.0 DTD "CanContain" rules, so it should be useful for other elements.
The element to insert
Delete the selection before inserting If aDeleteSelection is PR_FALSE, then the element is inserted after the end of the selection for all element except Named Anchors, which insert before the selection
removeInlineProperty() removes a property which changes inline style of text. E.g., bold, italic, super and sub.
Tag name whcih represents the inline style you want to remove. E.g., "strong", "b", etc. If "href", element which has href attribute will be removed. If "name", element which has non-empty name attribute will be removed.
If aProperty is "font", aAttribute should be "face", "size", "color" or "bgcolor".
------------ Inline property methods --------------
SetInlineProperty() sets the aggregate properties on the current selection
the property to set on the selection
the attribute of the property, if applicable. May be null. Example: aProperty="font", aAttribute="color"
if aAttribute is not null, the value of the attribute. May be null. Example: aProperty="font", aAttribute="color", aValue="0x00FFFF"
Generated using TypeDoc
A boolean which is true is the HTMLEditor has been instantiated with CSS knowledge and if the CSS pref is currently checked
Returns
true if CSS handled and enabled