常见问题
Full 还是 Inline?
- 文档 / 长文 / 富能力 →
YanivEditor - 评论 / 表单 / 紧凑输入 →
YanivInlineEditor
如何启用全部 Full 能力?
vue
<YanivEditor preset="full" />AI 需额外开启:
vue
<YanivEditor preset="full" :features="{ ai: true }" :ai-config="aiConfig" />Notion 风格怎么配?
- 块编辑行为 →
preset="notion" - 视觉皮肤 →
appearance="notion"
vue
<YanivEditor preset="notion" appearance="notion" :ai-config="aiConfig" />只读展示?
vue
<YanivEditor mode="preview" :initial-content="html" />链接可点、视频可播。详见 预览模式。
需要全局注册 Ant Design Vue 吗?
不需要。安装 peer 依赖后即可使用,库内部通过 src/shared/antd.ts 在各 UI 组件内按需局部注册 Ant Design Vue 组件,宿主应用无需 app.use(Antd)。Nuxt 项目使用 @ant-design-vue/nuxt 时同样适用。
basic 没有表格/视频?
v0.1.0 起 basic 默认仅 image。恢复旧行为:
vue
<YanivEditor preset="basic" :features="{ table: true, video: true }" />appearance 和 preset 的 notion 有什么区别?
preset="notion"— 功能方案(斜杠、拖拽、AI 等)appearance="notion"— 仅 CSS 皮肤
可独立组合。见 外观与颜色。
上传走自己的 OSS?
传 uploadImage / uploadVideo,见 集成 Props。
多语言?
:locale="zh-CN" 或 "en-US",见 国际化。
浮层被宿主 Modal 挡住 / 如何配置 z-index?
默认 zIndexBase 为 1000,浮层挂载在编辑器内 overlay portal。宿主全局 Modal 需完全盖住编辑器时,z-index 应高于 zIndexBase + 100(默认 1100),或降低编辑器的 zIndexBase。详见 Z-Index 与浮层。
自定义 Inline 工具栏?
见 Inline 工具栏 与 Inline 按需拼装。
在哪看完整功能列表?
架构 / 贡献代码从哪看?
架构设计 与根目录 ARCHITECTURE.md。