This is a migrated thread and some comments may be shown as answers.

Image Properties Command, Markup Beautifier?

1 Answer 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
J.A.
Top achievements
Rank 1
J.A. asked on 30 Jan 2009, 08:54 AM
Hello,

I've two questions regarding RadEditor:

Q1: I see that when right clicking an image inside RadEditor which uses the default configuration file, it shows the image properties command which opens the image properties dialog, but when I customize the command set using markup or tools file, I can't get such context menus, the examples shown in the documentation only shows command for copy, cut and paste where could I get the command for image properties dialog?

Q2: Is there a way to auto format (indentations, line break...etc) the source code for content markup when switching from design view to HTML view?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Feb 2009, 04:07 PM
Hi J.A.,

Straight to the points:

1) The command name of the Image Properties dialog is named "SetImageProperties". You can add this option to the IMG context menu like this:

<telerik:EditorContextMenu TagName="IMG">
      <telerik:EditorTool name="SetImageProperties"/>
      <telerik:EditorTool name="ImageMapDialog"/>
</telerik:EditorContextMenu>

2) RadEditor features the requested indentation client-side filter and it is executed when switching from Design to Html mode. The logic of the indentation feature is the following - if you have block element, it is placed on a new line; if it is not block, it remains on the same line.  This practice determines better design control since it places only the elements rendered as block on a new line.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
J.A.
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or