Properties
customStats
Defines the logic of displaying custom statistics
array customStats;
Related samples: Custom stats
Details
Each field of statistical data represents an object with two properties:
name
- (string) the name of the field that should be displayedcallback
- (function) a function that implements the logic of counting entries of the specified field
mode
The working mode of the RichText editor
string mode;
Values: "default","document"
Default value: "default"
Related samples: RichText. Modes
toolbarBlocks
Specifies blocks of buttons that will be shown in the Richtext toolbar
array toolbarBlocks;
Default value: ["undo", "style", "decoration", "colors", "align", "link"]
Related samples: RichText. Initialization
Details
Full toolbar
The full toolbar contains several more blocks: "clear"
, "fullscreen"
, and "stats"
:
Related samples: RichText. Full Toolbar
Short toolbar definition
The default set of buttons can be specified via the "default"
definition in the toolbarBlocks
array, like this:
Custom toolbar
It is also possible to create a custom toolbar by setting desired blocks in the random order:
Related sample: Toolbar Blocks