有没有办法在Kendo UI网页编辑器中为工具栏添加一个按钮,允许用户更改所选内容的行高?
答案 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。