knox hat die Gist bearbeitet . Zu Änderung gehen
1 file changed, 12 insertions
GrapesJS-readme-3.html(Datei erstellt)
@@ -0,0 +1,12 @@ | |||
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> |
Neuer
Älter