Indent/Outdent are flawed

David Tessler

First of all, I don't recall reading about a change to the Indent/Outdent behaviour in any of the release notes over the last few years. I have 10's of customers who have edited 10's of thousands of pages of content that all relay on the blockquote method of indentation. Now the editor doesn't support it. This is frustrating to no end.

Secondly, your current method is flawed. If I indent and then create a new paragraph, the next paragraph caries on the same indent level. This is great for persisting classes and other formatting options, but unexpected for an indentation.

The example code provided here (http://www.telerik.com/forums/blockquote-for-indent-setting) does not stand up to testing either. If the blockquotes are in a div or table cell, then the HTML gets jammed; not to mention that the example code adds the style AND the blockquote element.

It would have been awesome if you had given us an option (e.g. the newline settings).

About the mentioned indentation inheritance, you are correct that this happens. After invoking the Indent command the new paragraphs, inserted by pressing enter are also indented. As you will see in the provided help article, this is due to many request to improve the RadEditor text editing experience to be more consistent and close to the user experience from desktop rich text editors. You can test the same scenario with e.g. MS Word and the same result will appear. You can see my testing in MS Word by reviewing this screencast.

The mentioned forum thread provides an approach for using blockquote elements instead of the new default indent behavior. Note that this is not a firmly provided approach but only a suggestion, further testing and implementation should be done according to the application requirements.

While on this matter, I would like to inform you that the RadEditor control is designed to be an XHTML editor and as one, every correct and valid HTML tag/element is supported and can be used to format the content. This is why we provide the ability to implement custom commands/tools which can trigger any functionality that fits additional requirements or specific design decisions. More information aboutbuilding custom tools is provided in this online example http://demos.telerik.com/aspnet-ajax/editor/examples/customtools/defaultcs.aspx

If you desire to retain the new behavior of the block commands and implement custom tools for Custom Indent/Outdent commands you can follow this example:

Note, that this is only an example and if it does not provide the exact behavior that fits the application requirements you should further implement it according to them.

If you do not need the new behavior of the block commands. And you are certain that you are going to use the old one (InsertList commands will change too). As explained in the provided help article, you should insert the following line of code (highlighted in yellow) right after the ScriptManager control like in this example:

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.