Skip to content

FontFamilyDropdown ​

字体下拉:按中文/英文分组(宋体、微软雅黑、Arial 等),执行 `setFontFamily()` / `unsetFontFamily()`。

用法 ​

vue
<script setup lang="ts">
import { FontFamilyDropdown, Toolbar } from '@qingpai/vue'
</script>

<template>
  <Toolbar :editor="editor">
    <FontFamilyDropdown />
  </Toolbar>
</template>

Props ​

Prop类型默认值必填说明
editorEditor—条件编辑器实例。与 Toolbar 配合使用时无需传入(由 Toolbar 注入上下文提供);独立使用时必传

轻排编辑器 — 教育领域富文本编辑器