0.3.0 • Published 1 year ago

vue-tiptop-editor v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue-tiptop-editor

Rich text compiler based on vue3, typescript and tiptop

基于vue3,Typescript,tiptop开发的富文本编辑器

install

pnpm add vue-tiptop-editor

or

npm install vue-tiptop-editor

how to use

main.ts

import VueTiptopEdditor from 'vue-tiptop-editor'

createApp(App).use(VueTiptopEditor).mount('#app')

in component

import { VueTiptopEdditor } from 'vue-tiptop-editor'

Use v-model (optional)

<template>
  <div>
    <vue-tiptop-editor v-model="content"></vue-tiptop-editor>
  </div>
</template>

<script setup lang='ts'>
const content = ref("")
</script>

contact me