GrapesJS-readme-3.html
· 320 B · HTML
Sin formato
<link rel="stylesheet" href="path/to/grapes.min.css" />
<script src="path/to/grapes.min.js"></script>
<div id="gjs"></div>
<script type="text/javascript">
var editor = grapesjs.init({
container: '#gjs',
components: '<div class="txt-red">Hello world!</div>',
style: '.txt-red{color: red}',
});
</script>
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> |