tinymce.dom.StyleSheetLoader
This class handles loading of external stylesheets and fires events when these are loaded.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Loads the specified CSS file and returns a Promise that will resolve when the stylesheet is loaded successfully or reject if it failed to load. |
||
Loads the specified CSS files and returns a Promise that is resolved when all stylesheets are loaded or rejected if any failed to load. |
||
Loads the specified css string in as a style element with an unique key. |
||
Unloads the specified CSS file if no resources currently depend on it. |
||
Unloads each specified CSS file if no resources currently depend on it. |
||
Unloads the specified CSS style element by key. |
Methods
load()
load(url: String): Promise
Loads the specified CSS file and returns a Promise that will resolve when the stylesheet is loaded successfully or reject if it failed to load.
loadAll()
loadAll(urls: Array): Promise
Loads the specified CSS files and returns a Promise that is resolved when all stylesheets are loaded or rejected if any failed to load.
loadRawCss()
loadRawCss(key: String, css: String)
Loads the specified css string in as a style element with an unique key.