Par*_*osh 5 kendo-ui kendo-asp.net-mvc
如何从Kendo Editor控件中删除特定工具/按钮?
实际上,我只想Insert image从Kendo Editor(所有工具)控件中删除按钮.
@(Html.Kendo().Editor()
.Name("editor")
.Tools(tools => tools.SubScript().SuperScript().ViewHtml())
)
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
得到它了.首先需要删除所有工具,然后逐个添加每个工具.有一种方法Clear().这是代码.
@(Html.Kendo().Editor()
.Name(name)
.Tools(tools => tools.Clear() //remove all tools
.Bold().Italic().Underline().Strikethrough()
.FontName().FontSize().FontColor().BackColor()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList().Indent().Outdent()
.FormatBlock().CreateLink().Unlink()
.SubScript().SuperScript().ViewHtml()
)
Run Code Online (Sandbox Code Playgroud)
如果有其他方法,请告诉我.
| 归档时间: |
|
| 查看次数: |
5589 次 |
| 最近记录: |