@ldmjs/editor
v1.0.2
Published
ldm editor
Downloads
115
Readme
installation
yarn add @ldmjs/editor @vueup/vue-quill quill-delta-to-html
usage
import Editor from '@ldmjs/editor'
import { createApp } from 'vue'
const app = defineComponent({
template: `
<editor v-model:html="html" v-model:content="delta" />
`,
components: {
Editor,
},
data() {
return {
html: '',
delta: ''
}
},
})
const appComponent = createApp(app);
appComponent.mount('#app');