Kendo ui 剑道UI编辑器-从编辑器菜单中删除特定工具

Kendo ui 剑道UI编辑器-从编辑器菜单中删除特定工具,kendo-ui,kendo-asp.net-mvc,Kendo Ui,Kendo Asp.net Mvc,如何从剑道编辑器控件中删除特定的工具/按钮 实际上,我只想从控件中删除Insert image按钮 有什么想法吗?明白了。首先需要移除所有工具,然后逐个添加每个工具。它有一个方法Clear()。这是代码 @(Html.Kendo().Editor() .Name(name) .Tools(tools => tools.Clear() //remove all tools .Bold().Italic().Underline().

如何从剑道编辑器控件中删除特定的工具/按钮

实际上,我只想从控件中删除
Insert image
按钮


有什么想法吗?

明白了。首先需要移除所有工具,然后逐个添加每个工具。它有一个方法
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()
)

如果还有其他方法,请告诉我。

删除特定或所有工具的另一种方法是使用jquery,类似这样的-

<script>

    $(document).ready(function() {
        $("#editor").kendoEditor({
            value: "<p>hello there...</p>",
            tools: []
        });
    });

</script>

$(文档).ready(函数(){
$(“#编辑”).kendoEditor({
值:“你好…

”, 工具:[] }); });

这是

这里缺少括号。怀疑它属于
ViewHtml()
之后,否则,回答非常有用!
<script>

    $(document).ready(function() {
        $("#editor").kendoEditor({
            value: "<p>hello there...</p>",
            tools: []
        });
    });

</script>