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

[Solved] IndentHTMLContent Question

2 Answers 123 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 01 Mar 2010, 04:40 PM
I use the IndentHTMLContent filter. It works very nicely for tables, but it does not do any indenting for nested <div>, <p>, or other elements. So, for example, if I paste the following simple html with a couple of nested <div>s into the editor, it does not get indented.

<div>
<div>
<div></div>
</div>
</div>

Is there a way to get the indentation working for this type of html?

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 01 Mar 2010, 04:53 PM
Hi Dan,

This is an expected behavior. The logic of the filter 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.

My suggestion is to modify the IndentHTMLContent built-in content filter to fit your custom tags scenario. For your convenience I have attached the source code of this filter here. You can also find the code of this filter in the source code of the control which is available for download under your account.

Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Dan Ehrmann
Top achievements
Rank 1
answered on 01 Mar 2010, 05:20 PM
I see what you mean - thanx for the quick response - I will look at the filter code you sent
Tags
Editor
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dan Ehrmann
Top achievements
Rank 1
Share this question
or