我创建了一个简单的页面构建器,遵循GrapeJS,它运行良好. 我认为需要有两个函数来保存和加载生成的页面. 我该怎么办?
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: [] },
blockManager: { },
layerManager: { },
deviceManager: { },
selectorManager: { },
styleManager: { },
storageManager: { }
});