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

Addeded <tbody> tag upon copy / Paste HTML

3 Answers 21 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Samir Patel
Top achievements
Rank 1
Samir Patel asked on 27 Jun 2013, 05:39 AM
Hello,

On the RAD Editor , when user Copy the HTML from outside, and paste in to RAD Editor, and then verify the HTML code the additional <tbody> tag is added automatically in to HTML BODY.

Can please let me know how to resolve this? so that <tbody> text not added automatically..

Regards
Samir

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 28 Jun 2013, 05:23 PM
Hello Samir,

I tried to reproduce the issue locally with our online RadEditor examples and I did not find any problematic insertions with the pasted HTML. You could check if there is a customization of the editor control that results in the examined behavior. If there is not, you could get back to me with more detailed information about the problematic scenario.

You could also try reproducing the scenario with our online examples and send steps-by-step instructions so that I can inspect it locally in case the problem occurs.
 
Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Samir Patel
Top achievements
Rank 1
answered on 01 Jul 2013, 05:34 AM

in online examples also issue exist,

Steps,

1)Go to html mode of editor paste any html.

in our case,

<html>

<body>

<table>

<tr><td>Hello..</td></tr>

</table>

</body>

</html>

Check attachment : 1.PNG

2)Now click on design mode next again click on html mode.

Checkout the pasted html modified by exta head and tbody tags.
Check attachment : 2.PNG

0
Ianko
Telerik team
answered on 03 Jul 2013, 12:25 PM
Hi Samir,

The browser adds these elements in attempt to create a valid page and we cannot influence this behavior. In order to avoid it you could create a custom content filter for pasting the HTML code with the desired behavior.
You could check this help articles about the customization:
    -    Content filters - documentation article
    -    Custom content filters - demo.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Samir Patel
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Samir Patel
Top achievements
Rank 1
Share this question
or