Hi All, I am new to this tool. I wish to add it in my vue web page.
I tried the following to implement it but it throws issue like this.
ReferenceError: DrawerJs is not defined
How to fix this?
import drawerLocalization from './DrawerLocalization'
import drawerJsConfig from './redactorConfig'
import DrawerJs from './Drawer'
var drawer = new DrawerJs.Drawer(null, {
texts: drawerLocalization,
plugins: drawerJsConfig,
defaultImageUrl: '/images/drawer.jpg',
defaultActivePlugin : { name : 'Pencil', mode : 'lastUsed'},
}, 600, 600);
$('#canvas-editor').append(drawer.getHtml());
drawer.onInsert();
})
Hi All, I am new to this tool. I wish to add it in my vue web page. I tried the following to implement it but it throws issue like this. ReferenceError: DrawerJs is not defined How to fix this?
import drawerLocalization from './DrawerLocalization' import drawerJsConfig from './redactorConfig' import DrawerJs from './Drawer'
var drawer = new DrawerJs.Drawer(null, { texts: drawerLocalization, plugins: drawerJsConfig, defaultImageUrl: '/images/drawer.jpg', defaultActivePlugin : { name : 'Pencil', mode : 'lastUsed'}, }, 600, 600); $('#canvas-editor').append(drawer.getHtml()); drawer.onInsert(); })