【问题标题】:how to use splitButton in kendo-ui editor toolbar如何在 kendo-ui 编辑器工具栏中使用 splitButton
【发布时间】:2018-10-09 17:05:46
【问题描述】:

Kendo 工具栏有一个“splitButton”类型,但我不知道如何在编辑器工具栏中使用它。

只是在工具数组中添加一项根本不会显示它

{
  type: "splitButton",
  text: "Insert",
  menuButtons: [
      { text: "Insert above", icon: "insert-up" },
      { text: "Insert between", icon: "insert-middle" },
      { text: "Insert below", icon: "insert-down" }
  ]
},

【问题讨论】:

    标签: kendo-ui kendo-editor


    【解决方案1】:

    我认为 kendo 工具栏kendo editor 中的 toolbar相同的(如果我错了),并且拆分按钮不是一个选项。 docs tools 数组有一些选项(您可以在我提供的文档链接上阅读)

    一种方法是

    1. 使用自定义模板
    2. 启动工具栏
    3. 并创建引用剑道编辑器的事件处理程序
    4. 您还需要注意样式。

    (这是我编的,不知道是不是你需要的),看这个example

    【讨论】:

    • 哇!这很棒!您制作了自己的工具栏作为自定义模板。谢谢!
    • 如果您认为这个答案可以,请采纳,以便其他人也能看到。干杯
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-30
    • 1970-01-01
    • 1970-01-01
    • 2013-06-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多