Skip to content
Discussion options

You must be logged in to vote
  • 这是配置“内置工具栏”的文档哈,可以看下能否满足需求。
  • 如果用纯外置工具栏,可以在配置里这么声明以实现及隐藏工具栏,又可以调用工具栏api的效果(如何调用API,可以参考这篇文档):
new Cherry({
  toolbars: {
    showToolbar: false, // 不展示工具栏
    toolbar: [], 
    toolbarRight: [], // 不展示右侧工具栏
    sidebar: false, // 不展示侧边栏
    bubble: false, // 不展示气泡工具栏
    float: false, // 不展示新行工具栏
    toc: false, // 不展示悬浮目录
    hiddenToolbar: ['bold', 'italic', 'strikethrough', 'color', 'header', 'ruby', 'list', 'table',], // 不展示在编辑器中的工具栏,只使用工具栏的api和快捷键功能
  }
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vowqg
Comment options

@sunsonliu
Comment options

Answer selected by vowqg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants