grapesjs-plugin-toolbox
Version:
Grapesjs Plugin Toolbox
50 lines (44 loc) • 1.16 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>Grapesjs Plugin Toolbox</title>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<link href="dist/grapesjs-plugin-toolbox.min.css" rel="stylesheet">
<style>
body,
html {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<div id="gjs" style="height:0px; overflow:hidden">
<div style="margin:100px 100px 25px; padding:25px; font:caption">
This is a demo content from _index.html. You can use this template file for
development purpose. It won't be stored in your git repository
</div>
</div>
<script type="text/javascript">
window.editor = grapesjs.init({
height: '100%',
container: '#gjs',
showOffsets: true,
fromElement: true,
noticeOnUnload: false,
storageManager: false,
plugins: [
'grapesjs-plugin-toolbox'
],
pluginsOpts: {
'grapesjs-plugin-toolbox': {
/* Test here your options */
panels: 1
}
}
});
</script>
</body>
</html>