ui/toolbar/normalizetoolbarconfig
module
Functions
normalizeToolbarConfig( config ) → objectmodule:ui/toolbar/normalizetoolbarconfig~normalizeToolbarConfigNormalizes the toolbar configuration (
config.toolbar), which:- may be defined as an
Array:
toolbar: [ 'heading', 'bold', 'italic', 'link', ... ]Copy code- or an
Object:
toolbar: { items: [ 'heading', 'bold', 'italic', 'link', ... ], removeItems: [ 'bold' ], ... }Copy code- or may not be defined at all (
undefined)
and returns it in the object form.
Parameters
config : undefined | ToolbarConfigThe value of
config.toolbar.
Returns
objectA normalized toolbar config object.
- may be defined as an