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

Copying Bullets within a Table

2 Answers 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 30 Apr 2010, 07:06 PM
I have a table within the RadEditor, when I try to copy a bullet-ed item that has bold text from within the cell, add a new row, and paste into the new cell one of the following two things happen.

 1) it copies the text, but strips the bullet and the bold and leaves it as plain text *strips HTML encoding
 2) on paste the indent doesn't happen (like when you put a bullet point on an item, an indent will automatically happen more like when
     you paste a normal <li> instead of the ordered list mark) *HTML still there, it just doesn't show in design mode


is there a way to either capture the event when something gets added to the clip board, that way I can tell if it has styles while in the clip board, but they are stripped on paste? Or is there a way to copy the list item with the ordered or unordered list tag?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 05 May 2010, 12:28 PM
Hi Alex,

This behavior is not a result of stripping of the styles and / or HTML upon paste but is a result of the selection that is copied. Since the HTML tags are not visible in design mode a user cannot be sure of the selection and this issue is near impossible to be handled programmatically. If you want to copy a HTML element I suggest you to select it by using the DOMInspector System Module of RadEditor - see the attached screenshot

Regarding OnCopy event, RadEditor does not offer such event. Several browsers have implemented oncopy event, however, you should note that the access to the clipboard is not possible with JavaScript (except for Internet Explorer) due to possible security breaches.

Greetings,
Dobromir
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
Dobromir
Telerik team
answered on 05 May 2010, 12:40 PM
Hi Alex,

Please find the screenshot attached to this post.

Best wishes,
Dobromir
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
Alex
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or