Last active 1729700623

Revision 8a043496250aa37109574579bbb3d3a2f96ce687

GrapesJS-readme-3.html Raw
1<link rel="stylesheet" href="path/to/grapes.min.css" />
2<script src="path/to/grapes.min.js"></script>
3
4<div id="gjs"></div>
5
6<script type="text/javascript">
7 var editor = grapesjs.init({
8 container: '#gjs',
9 components: '<div class="txt-red">Hello world!</div>',
10 style: '.txt-red{color: red}',
11 });
12</script>