设置菜单栏提示

隐藏菜单栏提示

编辑器的菜单栏提示,可以通过 editor.config.showMenuTooltips 配置。

const E = window.wangEditor
const editor = new E('#div1')

// 隐藏菜单栏提示
editor.config.showMenuTooltips = false

editor.create()

设置菜单栏提示为上标还是下标

可以通过editor.config.menuTooltipPosition配置显示上标还是下标。

const E = window.wangEditor
const editor = new E('#div1')

// 菜单栏提示为上标(默认配置)
editor.config.menuTooltipPosition = 'up'

// 菜单栏提示为下标
// editor.config.menuTooltipPosition = 'down'

// 以上配置二选一

editor.create()
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2021-05-08 00:15:48

results matching ""

    No results matching ""