0.1.6 • Published 5 years ago
@pangrr/editor v0.1.6
editor
based on tiptap
install
npm install --save @pangrr/editor
use
<template>
<editor v-bind:content="content" @update="updateContent($event)"></editor>
</template>
<script>
import Editor from "@pangrr/editor";
export default {
components: {
Editor
},
data() {
return {
content: `
<p>hello world</p>
`
};
},
methods: {
updateContent: (html) => {
this.content = html;
}
}
};
</script>