bg-editor
v0.0.15
Published
open-source document editor based on Vue3 and Tiptap. Editor provides comprehensive document editing capabilities and AI creation features, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion o
Maintainers
Readme
BG Editor
一个基于 Vue3 和 Tiptap 的开源文档编辑器。
特性
- 📄 分页模式 - 类似 Microsoft Word 的页面布局
- ✍️ 富文本编辑 - 完整的格式化选项
- 🤖 AI 集成 - AI 辅助内容创作
- 📝 Markdown 支持 - 使用 Markdown 语法编写
- 🎨 多种节点类型 - 表格、图片、代码块等
- 📤 导出选项 - PDF、Word、HTML 等格式
- 🖨️ 打印支持 - 打印预览和直接打印
- 🔌 可扩展 - 添加自定义扩展
- 🌍 国际化 - 多语言支持
- 🌙 暗色主题 - 内置暗色模式
安装
npm install bg-editor
# 或
pnpm add bg-editor
# 或
yarn add bg-editor快速开始
<template>
<BgEditor v-model="content" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import BgEditor from 'bg-editor'
import 'bg-editor/style'
const content = ref('')
</script>环境要求
- Vue >= 3.x
- Node >= 18.0.0
