Completed
Last Updated: 02 Nov 2016 10:43 by Shane
ADMIN
Vessy
Created on: 12 Jan 2016 13:01
Category: Editor
Type: Bug Report
7
Pasting partial table element in Editor appends additional div in Chrome
When a partially copied table is pasted into the Editor in Chrome, it is pasted wrapped in the folloing div, making it not visible:

<div class="telerik_paste_container" style="border-width: 0px; position: absolute; overflow: hidden; margin: 0px; padding: 0px; left: 3px; top: 215px; width: 1px; height: 1px;">
...
</div>


Steps to reproduce:
1. Open http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
2. Clear the contents of the editor
3. Insert a table (any configuration of rows and columns) 
4. Go to a new line
5. Type a word on the new line
6. Select the word and a partial amount of the inserted table
7. Copy
8. Paste
9. Navigate to the HTML browser of the editor
10. Observe the "telerik_paste_container" still wrapping the pasted content

Workaround:
<telerik:RadEditor ID="RadEditor1" runat="server">
</telerik:RadEditor>

<script type="text/javascript">
	var editorPrototype = Telerik.Web.UI.RadEditor.prototype;
	var onAfterPaste = editorPrototype._onAfterPaste;
	editorPrototype._onAfterPaste = function (range, tmpPasteContainer) {
		try {
			onAfterPaste.call(this, range, tmpPasteContainer);
		} catch (e) { }
		$telerik.$(this.get_contentArea()).find(".telerik_paste_container").remove();
	};
</script>
4 comments
Shane
Posted on: 19 Apr 2016 13:22
+1
Elaine
Posted on: 19 Apr 2016 10:50
Is there any timeline known for fixing this issue?
Tomas
Posted on: 01 Apr 2016 16:17
Hi, is there any update on this issue?
Dave
Posted on: 08 Feb 2016 12:24
This can be reproduced simply by selecting a table, copying and then pasting.