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

<br><br> instead of <p>

1 Answer 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amey
Top achievements
Rank 1
Amey asked on 18 Feb 2010, 07:56 PM
Hello,

I have a .txt document that when pasted into the editor, creates <br><br> after each paragraph instead of surrounding each paragraph with <p> tags.  Why would this happen?  I can send you the document to test if needed.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Feb 2010, 05:29 PM
Hi Christian,

The content area of RadEditor is a standard editable IFRAME element and it does not control what content is pasted in it and does not modify it. You will experience the same behavior by pasting this content in an editable DIV or IFRAME element.

If you would like you can attach to the OnClientPasteHtml event of RadEditor, check for the Paste command execution and wrap the content in <p> tags. This will be not an easy task but you can experiment and succeed.

Sincerely,
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.
Tags
Editor
Asked by
Amey
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or