nsIEditorStyleSheets
Methods
replaceStyleSheet(aURL)
Load and apply the style sheet, specified by aURL, to the
editor’s document, replacing the last style sheet added (if any).
This is always asynchronous, and may cause network I/O.
Parameters
aURL |
The style sheet to be loaded and applied.
|
addStyleSheet(aURL)
Add the given style sheet to the editor’s document,
on top of any that are already there.
This is always asynchronous, and may cause network I/O.
Parameters
aURL |
The style sheet to be loaded and applied.
|
replaceOverrideStyleSheet(aURL)
Load and apply the override style sheet, specified by aURL, to the
editor’s document, replacing the last override style sheet added (if any).
This is always synchronous, so aURL should be a local file with only
local @imports. This action is not undoable. It is not intended for
“user” style sheets, only for editor developers to add sheets to change
display behavior for editing (like showing special cursors) that will
not be affected by loading “document” style sheets with addStyleSheet or
especially replaceStyleSheet.
Parameters
aURL |
The style sheet to be loaded and applied.
|
addOverrideStyleSheet(aURL)
Load and apply an override style sheet, specified by aURL, to
the editor’s document, on top of any that are already there.
This is always synchronous, so the same caveats about local files and no
non-local @import as replaceOverrideStyleSheet apply here, too.
Parameters
aURL |
The style sheet to be loaded and applied.
|
removeStyleSheet(aURL)
Remove the given style sheet from the editor’s document
This is always synchronous
Parameters
aURL |
The style sheet to be removed
|
removeOverrideStyleSheet(aURL)
Remove the given override style sheet from the editor’s document
This is always synchronous
Parameters
aURL |
The style sheet to be removed.
|
enableStyleSheet(aURL, aEnable)
Enable or disable the given style sheet from the editor’s document
This is always synchronous
Parameters
aURL |
The style sheet to be enabled or disabled
|
aEnable |
true to enable, or false to disable the style sheet
|
getStyleSheetForURL(aURL)
Get the CSSStyleSheet associated with the given URL.
Parameters
aURL |
The style sheet's URL
|
Returns
getURLForStyleSheet(aStyleSheet)
Get the URL associated with the given CSSStyleSheet.
Parameters
aStyleSheet |
The style sheet
|
Returns