Important changes to Tiny Cloud pricing > Find out more

tinymce.dom.StyleSheetLoader

This class handles loading of external stylesheets and fires events when these are loaded.

Methods

name summary defined by
load() Loads the specified CSS file and calls the `loadedCallback` once it's finished loading. tinymce.dom.StyleSheetLoader
loadAll() Loads the specified CSS files and calls the `success` callback once it's finished loading. tinymce.dom.StyleSheetLoader

Methods

load

load(url:String, loadedCallback:Function, errorCallback:Function)

Loads the specified CSS file and calls the `loadedCallback` once it's finished loading.

Parameters
  • url (String) - Url to be loaded.
  • loadedCallback (Function) - Callback to be executed when loaded.
  • errorCallback (Function) - Callback to be executed when failed loading.

loadAll

loadAll(urls:Array, success:Function, failure:Function)

Loads the specified CSS files and calls the `success` callback once it's finished loading.

Parameters
  • urls (Array) - Urls to be loaded.
  • success (Function) - Callback to be executed when the style sheets have been successfully loaded.
  • failure (Function) - Callback to be executed when the style sheets fail to load.

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.