任何允许用户在Kendo UI Web编辑器中更改行高的方法

时间:2014-01-14 08:40:17

标签: kendo-ui

有没有办法在Kendo UI网页编辑器中为工具栏添加一个按钮,允许用户更改所选内容的行高?

1 个答案:

答案 0 :(得分:0)

是。您所指的是通过配置编辑器的stylesheets属性,然后配置将样式应用于所选内容的工具来完成的。

$("#editor").kendoEditor({
  tools: [
    { name: "formatting", items: [
      { text: "Highlight Error", value: ".hlError" },
      { text: "Highlight OK", value: ".hlOK" },
      { text: "Inline Code", value: ".inlineCode" }
    ] }
  ],
  stylesheets: [
    "../../content/web/editor/editorStyles.css"
  ]
});

请参阅Kendo UI网站上的此演示:http://demos.kendoui.com/web/editor/styles.html