1

少しサンプル コードが必要です。私は VB.net を使用しています。

Web サイト全体で Teleriks RadEditor を使用していますが、各領域にはさまざまな程度のアクセスと機能があるため、各エディターでメディアの挿入ボタンなどの特定のボタンを削除したいと考えています。

非常に単純なコード例:

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

コードビハインドでは、コントロールを見つけて、変数/コントロールの機能を使用してボタンを削除する必要があると推測しています。

誰かがこの問題に取り組んだことがあれば、サンプル コードを教えていただければ幸いです。

4

1 に答える 1

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>
于 2013-06-08T12:24:05.810 に答える