Skip to content

Instantly share code, notes, and snippets.

@powerdot
Last active May 21, 2021 12:25
Show Gist options
  • Save powerdot/367d7107a3619ae857110995aca63ecc to your computer and use it in GitHub Desktop.
Save powerdot/367d7107a3619ae857110995aca63ecc to your computer and use it in GitHub Desktop.
<template>
<div class="container">
<block-editor :layout="{ menu: true, propertyEditor: true, history: false, editor: true }">
<myOwnBlock title="My Block"/>
</block-editor>
</div>
</template>
<script>
import BlockEditor from "vue-block-editor";
import 'vue-block-editor/dist/BlockEditor.css';
export default {
name: "Home",
components: {
BlockEditor,
myOwnBlock: ()=> import("@/components/myOwnBlock")
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment