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

Formatting issues with editor

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bronwen
Top achievements
Rank 2
Bronwen asked on 22 Apr 2009, 01:28 AM
Is there a way to turn on p tags for the editors so that when i hit enter twce it gives me p's rather than <br>?
Also if I apply a h2 to text I can't get rid of it without going into the html view.  If i highlight and select normal or use the css strip formatting it does nothing.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Apr 2009, 01:35 PM
Hi Bronwen,

The feature to add a <p> tag on hitting the enter key twice is not supported out-of-the box, but if you would like you can try to implement it yourself by attaching to the onkeydown event of RadEditor. You can see how to attach to the content area events in the following help article: attachEventHandler.

The second problem appears when the content is selected and the h2 item is applied. This operation wraps the content in P tag wrapped itself in H2 tag, e.g.

<h2>
<p>test</p>
</h2>
This scenario is logged in our todo list and we will do our best to fix it for the next SP2 release.

If you have an empty selection and apply a heading tag then the content is correctly wrapped in h2 tags

<h2>test</h2>

and you can go outside of the heading tag by just pressing the Enter key.

For your convenience I have attached a video demonstrating my test.

All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Bronwen
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or