mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
468 B
30 lines
468 B
<template>
|
|
<div>
|
|
<div class="gjs" id="gjs2">
|
|
<h1>Hello World Component!</h1>
|
|
</div>
|
|
<div id="blocks2"></div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import utils from './demos/utils.js';
|
|
|
|
export default {
|
|
mounted() {
|
|
window.editor2 = grapesjs.init(utils.gjsConfigBlocks);
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.gjs {
|
|
border: 3px solid #444;
|
|
box-sizing: border-box;
|
|
}
|
|
.gjs-block {
|
|
width: auto;
|
|
height: auto;
|
|
min-height: auto;
|
|
}
|
|
</style>
|
|
|