I want to make a context menu for image like here:
http://demos.telerik.com/aspnet-ajax/editor/examples/builtinmodules/defaultcs.aspx
But when I add EditorTool Name="ImageEditor" I have an alert:
"the command ImageEditor is not implemented yet"
What I'm doing wrong?
I have simple RadEditor.
http://demos.telerik.com/aspnet-ajax/editor/examples/builtinmodules/defaultcs.aspx
But when I add EditorTool Name="ImageEditor" I have an alert:
"the command ImageEditor is not implemented yet"
What I'm doing wrong?
I have simple RadEditor.
3 Answers, 1 is accepted
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 10 Nov 2009, 09:58 AM
Any ideas?
| <telerik:RadEditor ID="content" runat="server" Height="700px" Width="950px" Skin="WebBlue" ToolbarMode="Default"> |
| <CssFiles> |
| <telerik:EditorCssFile Value="~/modules/artykuly/EditorContentArea.css" /> |
| </CssFiles> |
| <Tools> |
| <telerik:EditorToolGroup Tag="Main"> |
| <telerik:EditorTool name="SelectAll" /> |
| <telerik:EditorTool name="FindAndReplace" /> |
| <telerik:EditorTool name="Cut" /> |
| <telerik:EditorTool name="Copy" /> |
| <telerik:EditorTool name="Paste" /> |
| <telerik:EditorTool name="PasteFromWord" /> |
| <telerik:EditorTool name="PastePlainText" /> |
| <telerik:EditorTool name="PasteAsHtml" /> |
| <telerik:EditorSeparator Visible="true" /> |
| <telerik:EditorTool name="Undo" /> |
| <telerik:EditorTool name="Redo" /> |
| <telerik:EditorSeparator Visible="true" /> |
| <telerik:EditorTool name="Bold" /> |
| <telerik:EditorTool name="Italic" /> |
| <telerik:EditorTool name="Underline" /> |
| <telerik:EditorTool name="StrikeThrough" /> |
| <telerik:EditorSeparator Visible="true" /> |
| <telerik:EditorTool name="Indent" /> |
| <telerik:EditorTool name="Outdent" /> |
| <telerik:EditorTool name="InsertOrderedList" /> |
| <telerik:EditorTool name="InsertUnorderedList" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="FileManagers"> |
| <telerik:EditorTool Name="ImageManager" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="Justify"> |
| <telerik:EditorTool Name="JustifyLeft"/> |
| <telerik:EditorTool Name="JustifyCenter"/> |
| <telerik:EditorTool Name="JustifyRight"/> |
| <telerik:EditorTool Name="JustifyFull"/> |
| <telerik:EditorTool Name="JustifyNone"/> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="Font"> |
| <telerik:EditorTool Name="FormatBlock" /> |
| <telerik:EditorTool Name="FontName" /> |
| <telerik:EditorTool Name="RealFontSize"/> |
| <telerik:EditorTool Name="FormatCodeBlock" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="Table"> |
| <telerik:EditorTool Name="TableWizard"/> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="Add"> |
| <telerik:EditorTool Name="ForeColor" /> |
| <telerik:EditorTool Name="BackColor" /> |
| </telerik:EditorToolGroup> |
| <telerik:EditorToolGroup Tag="Links"> |
| <telerik:EditorTool Name="LinkManager" /> |
| <telerik:EditorTool Name="Unlink" /> |
| </telerik:EditorToolGroup> |
| </Tools> |
| <ContextMenus> |
| <telerik:EditorContextMenu TagName="IMG"> |
| <telerik:EditorTool Name="ImageEditor" /> |
| <telerik:EditorTool Name="ImageManager" /> |
| <telerik:EditorTool Name="ImageMapDialog" /> |
| </telerik:EditorContextMenu> |
| </ContextMenus> |
| <ImageManager MaxUploadFileSize="122880" |
| EnableImageEditor="false" ImageEditorFileSuffix="" |
| SearchPatterns="*.gif,*.png,*.jpg,*.jpeg,*.bmp,*.png" /> |
| <Content> |
| </Content> |
| </telerik:RadEditor> |
0
Hi Grzesiek,
For the time being the Image Editor dialog could be opened only via the Image Manager and it has not its own command name.
Sincerely,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
For the time being the Image Editor dialog could be opened only via the Image Manager and it has not its own command name.
Sincerely,
Rumen
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 12 Nov 2009, 11:29 AM
I've found the solution for my problem.
I don't know why, but when I put all the tools into .xml file and set ToolsFile="tools.xml" the properties option i contextmenu for image is being shown correctly. I didn't change anything more - just create .xml file, create the same set of tools which I had and it works.
I don't know why, but when I put all the tools into .xml file and set ToolsFile="tools.xml" the properties option i contextmenu for image is being shown correctly. I didn't change anything more - just create .xml file, create the same set of tools which I had and it works.
