Update builder.html
Browse files- builder.html +17 -9
builder.html
CHANGED
@@ -143,6 +143,21 @@
|
|
143 |
</div>
|
144 |
`
|
145 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
var editor = grapesjs.init({
|
147 |
container : '#gjs',
|
148 |
...
|
@@ -153,15 +168,8 @@
|
|
153 |
}
|
154 |
}
|
155 |
});
|
156 |
-
|
157 |
-
label: 'Description',
|
158 |
-
content: `<div class="description">This is a demo content from index.html. For the development, you shouldn't edit this file, instead you can copy and rename it to _index.html, on next server start the new file will be served, and it will be ignored by git.</div>`
|
159 |
-
});
|
160 |
|
161 |
-
|
162 |
-
label: 'Add Button',
|
163 |
-
content: `<button class="add-button">Ещё добавь</button>`
|
164 |
-
});
|
165 |
-
</script>
|
166 |
</body>
|
167 |
</html>
|
|
|
143 |
</div>
|
144 |
`
|
145 |
});
|
146 |
+
|
147 |
+
editor.BlockManager.add('description-block', {
|
148 |
+
label: 'Description',
|
149 |
+
content: `<div class="description">This is a demo content from index.html. For the development, you shouldn't edit this file, instead you can copy and rename it to _index.html, on next server start the new file will be served, and it will be ignored by git.</div>`
|
150 |
+
});
|
151 |
+
|
152 |
+
editor.BlockManager.add('button-block', {
|
153 |
+
label: 'Add Button',
|
154 |
+
content: `<button class="add-button">Ещё добавь</button>`
|
155 |
+
});
|
156 |
+
</script>
|
157 |
+
|
158 |
+
|
159 |
+
|
160 |
+
<script type="text/javascript">
|
161 |
var editor = grapesjs.init({
|
162 |
container : '#gjs',
|
163 |
...
|
|
|
168 |
}
|
169 |
}
|
170 |
});
|
171 |
+
</script>
|
|
|
|
|
|
|
172 |
|
173 |
+
|
|
|
|
|
|
|
|
|
174 |
</body>
|
175 |
</html>
|