Interface nsIEditorMailSupportType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Insert a string as quoted text (whose representation is dependant on the editor type), replacing the selected text (if any), including, if possible, a "cite" attribute.

    Returns

    The node which was inserted

    Parameters

    • aQuotedText: string

      The actual text to be quoted

    • aCitation: string

      The "mid" URL of the source message

    • aInsertHTML: boolean

      Insert as html? (vs plaintext)

    Returns Node

  • Inserts a plaintext string at the current location, with special processing for lines beginning with ">", which will be treated as mail quotes and inserted as plaintext quoted blocks. If the selection is not collapsed, the selection is deleted and the insertion takes place at the resulting collapsed selection.

    Parameters

    • aStringToInsert: string

    Returns void

  • Rewrap the selected part of the document, re-quoting if necessary.

    Parameters

    • aRespectNewlines: boolean

      Try to maintain newlines in the original?

    Returns void

Generated using TypeDoc