dijit._editor.plugins.FontChoice
dojo.require("dijit._editor.plugins.FontChoice");
defined in dijit/_editor/plugins/FontChoice.js
The commands provided by this plugin are:
- fontName Provides a dropdown to select from a list of generic font names
- fontSize Provides a dropdown to select from a list of pre-defined font sizes
- formatBlock Provides a dropdown to select from a list of styles
which can easily be added to an editor by including one or more of the above commands
in the plugins
attribute as follows:
plugins="['fontName','fontSize',...]"
It is possible to override the default dropdown list by providing an Array for the custom
property when
instantiating this plugin, e.g.
plugins="[{name:'dijit._editor.plugins.FontChoice', command:'fontName', custom:['Verdana','Myriad','Garamond']},...]"
Alternatively, for fontName
only, generic:true
may be specified to provide a dropdown with
CSS generic font families
Note that the editor is often unable to properly handle font styling information defined outside the context of the current editor instance, such as pre-populated HTML.
Usage
function ()
parameter | type | description |
---|---|---|
args | Object | Optional. |
node | DomNode | Optional. |
FunctionsBack to top

Defined by dijit._editor._Plugin

Defined by dijit._editor._Plugin

Defined by dijit._editor._Plugin

Defined by dijit._editor._Plugin

Overrides dijit._editor._Plugin
Overrides dijit._editor._Plugin

Overrides dijit._editor._Plugin
PropertiesBack to top
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin
Overrides dijit._editor._Plugin
Overrides dijit._editor._Plugin
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin
Defined by dijit._editor._Plugin