mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
488 B
14 lines
488 B
const editor = grapesjs.init({
|
|
// Indicate where to init the editor. You can also pass an HTMLElement
|
|
container: '#gjs',
|
|
// Get the content for the canvas directly from the element
|
|
// As an alternative we could use: `components: '<h1>Hello World Component!</h1>'`,
|
|
fromElement: true,
|
|
// Size of the editor
|
|
height: '300px',
|
|
width: 'auto',
|
|
// Disable the storage manager for the moment
|
|
storageManager: false,
|
|
// Avoid any default panel
|
|
panels: { defaults: [] },
|
|
});
|
|
|