-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
42 lines (39 loc) · 1.41 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>GrapesJS TOAST UI Image Editor</title>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/grapesjs-blocks-basic"></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. For the development, you shouldn't edit this file, instead you can
copy and rename it to _index.html, on next server start the new file will be served, and it will be ignored by git.
</div>
<img src="https://images.unsplash.com/photo-1606318621597-c057f7d4926e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8bW91bnRhaW58fHx8fHwxNjg2NTY3MTcz&ixlib=rb-4.0.3&q=80&w=500" />
</div>
<script type="text/javascript">
window.onload = () => {
window.editor = grapesjs.init({
height: '100%',
showOffsets: true,
noticeOnUnload: false,
storageManager: false,
container: '#gjs',
fromElement: true,
plugins: ['gjs-blocks-basic', 'grapesjs-tui-image-editor'],
});
};
</script>
</body>
</html>