-
Notifications
You must be signed in to change notification settings - Fork 113
Default Plugin
Srdjan Djenader edited this page Dec 21, 2017
·
2 revisions
Specifies the default plugin that will be used initially when activating edit mode (clicking on canvas element).
defaultPlugin: {
name: 'Pencil',
mode: 'onNew'
}
- Optional setting. If not specified, no default plugin will be used.
-
name
:- Specifies the name of the plugin to activate automatically when edit mode is started.
- Possible values:
- All configured plugins (Drawing Tools):
- 'Pencil'
- 'Eraser'
- 'Text'
- 'Line'
- 'ArrowOneSide'
- 'ArrowTwoSide'
- 'Triangle'
- 'Rectangle'
- 'Circle'
- 'Polygon'
- All configured plugins (Drawing Tools):
-
mode
:- Specifies when the default plugin is used.
- Possible values:
-
onNew
- Default plugin is only used for the first time the edit mode is activated.
-
always
- Default plugin is used every time the edit mode is activated.
-
lastUsed
- Default plugin is only used for the first time the edit mode is activated.
- For all subsequent edit modes the last used plugin is used automatically.
-
Getting Started
Plugins
-
Drawing Tools
-
Drawing Options
-
Advanced Configuration
Redactor Plugin Specific
DEMO