Skip to content

Commit

Permalink
Update index
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 29, 2022
1 parent 1c06320 commit ce2b188
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>GrapesJS Countdown Plugin</title>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<script src="dist/grapesjs-component-countdown.min.js"></script>
<style>
body, html {
height: 100%;
Expand All @@ -16,17 +15,18 @@
<body>
<div id="gjs" style="height:0px; overflow:hidden"></div>
<script type="text/javascript">
var editor = grapesjs.init({
height: '100%',
noticeOnUnload: 0,
storageManager:{autoload: 0},
container : '#gjs',
fromElement: true,

plugins: ['gjs-component-countdown'],
pluginsOpts: {
'gjs-component-countdown': {}
}
setTimeout(() => {
window.editor = grapesjs.init({
height: '100%',
noticeOnUnload: false,
storageManager: false,
container : '#gjs',
fromElement: true,
plugins: ['grapesjs-component-countdown'],
pluginsOpts: {
'grapesjs-component-countdown': {}
}
});
});
</script>
</body>
Expand Down

0 comments on commit ce2b188

Please sign in to comment.