-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
50 lines (49 loc) · 1.28 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 Echarts</title>
<link
href="https://unpkg.com/grapesjs/dist/css/grapes.min.css"
rel="stylesheet"
/>
<script src="https://unpkg.com/grapesjs" SameSite="None"></script>
<script src="https://unpkg.com/grapesjs-echarts.js"></script>
<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-echarts"],
pluginsOpts: {
"grapesjs-echarts": {
/* Test here your options */
},
},
storageManager: {
autosave: 1,
autoload: 1,
type: "local",
},
});
</script>
</body>
</html>