Radeditor删除代码后面的按钮

时间:2013-06-08 10:19:13

标签: vb.net user-controls radeditor

需要一些示例代码,我正在使用VB.net。

我在我的网站上使用Teleriks RadEditor,每个区域都有不同程度的访问和能力,所以我想删除某些按钮,例如插入媒体按钮。

示例代码,非常简单:

<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<dnn:TextEditor ID="txtInfo" runat="server" ChooseMode="False"
           Width="100%" />

在代码背后,我猜我需要找到控件并使用变量/控件的功能来删除按钮。

如果有人解决了这个问题,那么请一些示例代码吗?

1 个答案:

答案 0 :(得分:0)

我完全重建了所有按钮

<telerik:RadEditor ID="RadEditor1" Runat="server"
         AutoResizeHeight="true" Width="100%" >
         <Tools>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                <telerik:EditorTool Name="Redo" ShortCut="CTRL+R" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                <telerik:EditorTool Name="Cut" ShortCut="CTRL+X" />
                <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                <telerik:Editortool Name="Paste" ShortCut="CTRL+P" />
                <telerik:EditorTool Name="PasteStrip" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="LinkManager" />
                <telerik:EditorTool Name="Unlink" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="FormatBlock" />
                <telerik:EditorTool Name="FontSize" />
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="JustifyLeft" />
                <telerik:EditorTool Name="JustifyCenter" />
                <telerik:EditorTool Name="JustifyRight" />
                <telerik:EditorTool Name="JustifyFull" />
                <telerik:EditorTool Name="JustifyNone" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="Indent" />
                <telerik:EditorTool name="Outdent" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="InsertUnorderedList" />
                <telerik:EditorTool Name="InsertOrderedList" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="InsertSymbol" />
            </telerik:EditorToolGroup>
         </Tools>
        </telerik:RadEditor>
相关问题