tiptap 介绍
tiptap是vue.js的无渲染和可扩展的富文本编辑器
安装
npm install tiptap
or
yarn add tiptap
使用
<template>
<editor-content :editor="editor" />
</template>
<script>
// Import the editor
import { Editor,EditorContent } from 'tiptap'
export default {
components: {
EditorContent,
},
data() {
return {
editor: null,
}
},
mounted() {
this.editor = new Editor({
content: '<p>This is just a boring p ara graph</p>',
})
},
beforeDestroy() {
this.editor.destroy()
},
}
</script>
网站地址 : https://tiptap.scrumpy.io
GitHub: https://github.com/scrumpy/tiptap
网站描述: Vue.js的富文本编辑器
tiptap官方网站
官方网站: https://tiptap.scrumpy.io
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did174753