TinyMCE Icon options
There are two options for replacing the icons in TinyMCE: icons
and icons_url
. Tiny recommends using the icons
option for icon packs bundled with the product or included in your cloud subscription. Custom or third-party icons should be included using the icons_url
option to simplify updating and upgrading TinyMCE.
icons
The icons option allows the editor icons to be extended or replaced using an icon pack. For information on creating icon packs, see: Create an icon pack for TinyMCE.
Type: String
On initialization, TinyMCE will try to load any icon pack specified by the icons option. The icons in the icon pack will be merged with TinyMCE’s default icons and icons in the icon pack will overwrite the default icons with the same identifier.
TinyMCE loads icon packs from the path TINYMCE_BASE/icons/${iconPackName}/icons.js
; where:
-
TINYMCE_BASE
is the TinyMCE root directory (the directory containingtinymce.min.js
). -
${iconPackName}
is the name of the icon pack.
To use a TinyMCE icon pack:
-
If required, create a new
icons
directory inTINYMCE_BASE
. -
Copy the icon pack into the
icons
directory. -
Add the
icons
option totinymce.init
.
icons_url
The icons_url option allows the editor icons to be extended or replaced using an icon pack. For information on creating icon packs, see: Create an icon pack for TinyMCE.
On initialization, TinyMCE will try to load any icon pack specified by the icons_url option. The icons in the icon pack will be merged with TinyMCE’s default icons and icons in the icon pack will overwrite the default icons with the same identifier.
icons_url
is used to specify the location of an icon pack when TinyMCE and the icon pack are loaded from different locations. For example: When loading TinyMCE from Tiny Cloud, the icon pack can be loaded from a different web server.
Type: String