-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
50 lines (45 loc) · 1.62 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>GrapesJS Plugin Boilerplate</title>
<link href="https://grapesjs.com/stylesheets/grapes.min.css?v0.14.43" rel="stylesheet">
<script src="https://grapesjs.com/js/grapes.min.js?v0.14.43"></script>
<script src="/node_modules/grapesjs-blocks-basic/dist/grapesjs-blocks-basic.min.js"></script>
<script src="/node_modules/grapesjs-plugin-forms/dist/grapesjs-plugin-forms.min.js"></script>
<script src="dist/grapesjs-plugin-modal.min.js"></script>
<style>
body,
html {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<div id="gjs" style="height:0px; overflow:hidden">
</div>
<script type="text/javascript">
var editor = grapesjs.init({
height: '100%',
showOffsets: 1,
noticeOnUnload: 0,
storageManager: {autoload: 0},
container: '#gjs',
fromElement: true,
// We need that setting cause the create modal cmd needs to add script tags.
allowScripts: 1,
plugins: ['gjs-blocks-basic', 'gjs-plugin-forms', 'gjs-modal'],
pluginsOpts: {
'gjs-modal': {
'includeExternalLinks' : true
},
'gjs-blocks-basic': {
flexGrid: 1
}
}
});
window.editor = editor;
</script>
</body>
</html>