2013-06-08 4 views
1

약간의 샘플 코드가 필요하며 VB.net을 사용하고 있습니다.코드 편집기에서 단추를 제거하는 Radeditor

내 웹 사이트에서 Teleriks RadEditor를 사용하고 있으며 각 영역마다 다양한 접근 및 기능이 있으므로 각 미디어 편집기의 미디어 삽입 버튼과 같은 특정 버튼을 제거하고 싶습니다.

예제 코드, 매우 간단합니다 : 뒤에 코드에서

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

, 내가 추측하고는 제어 및 사용 버튼을 제거 할 수있는 변수/제어의 기능을 찾아야합니다.

누구든지이 문제를 해결 한 경우 일부 샘플 코드를 알려 주시면 감사하겠습니다.

답변

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> 
에서 모든 버튼을 재건