-
Couldn't load subscription status.
- Fork 113
Appearance
Srdjan Djenader edited this page Dec 21, 2017
·
2 revisions
borderCss: '1px dashed rgb(195, 194, 194)',
borderCssEditMode: '1px dashed rgb(195, 194, 194)',
backgroundCss: 'transparent'
All settings are optional. If not specified otherwise, the above defaults will be used.
-
borderCss:- Specifies the CSS
borderproperty of the canvas that is applied to displayed drawings.
- Specifies the CSS
-
borderCssEditMode:- Specifies the CSS
borderproperty that is applied while editing a drawing.
- Specifies the CSS
-
backgroundCss:- Specifies the CSS
backgroundproperty of the canvas container. - Examples:
'url(/assets/transparent.png) repeat''transparent'
- Specifies the CSS
var drawer = new DrawerJs.Drawer(null, {
texts: CustomLocalization,
plugins: drawerPlugins,
defaultImageUrl: '/images/drawer.jpg'
}, 600, 600);
-
new DrawerJs.Drawer(redactorInstance, options, width, height)- Parameters:
-
redactorInstance:- Type: Object
- Redactor's instance. Specify
nullfor the standalone version.
-
options:- Type: Object
- Object with configuration parameters.
-
width:- Type: Number
- Width in px.
-
height:- Type: Number
- Height in px.
-
- Parameters:
Getting Started
Plugins
-
Drawing Tools
-
Drawing Options
-
Advanced Configuration
Redactor Plugin Specific
DEMO