Skip to content

Instantly share code, notes, and snippets.

@hharzer
Created August 8, 2019 01:33
Show Gist options
  • Save hharzer/29243be6ad971ddef5df80128960d4c0 to your computer and use it in GitHub Desktop.
Save hharzer/29243be6ad971ddef5df80128960d4c0 to your computer and use it in GitHub Desktop.
grapejs-template
<div id="gjs"></div>
var editor = grapesjs.init({
container : '#gjs',
fromElement: true,
});
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
body, html { height: 100%; }
#gjs { height: 100% !important; }
/* We can remove the border we've set at the beginnig */
#gjs {
border: none;
}
/* Theming */
/* Primary color for the background */
.gjs-one-bg {
background-color: #efefef;
}
/* Secondary color for the text color */
.gjs-two-color {
color: #232323;
}
/* Tertiary color for the background */
.gjs-three-bg {
background-color: #232323;
color: #efefef;
}
/* Quaternary color for the text color */
.gjs-four-color,
.gjs-four-color-h:hover {
color: #23ef23;
}
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment