Completed
Last Updated: 19 Jan 2016 08:13 by Erik
ADMIN
Ianko
Created on: 18 Nov 2015 11:26
Category: Editor
Type: Bug Report
0
Under Edge, RadEditor alerts an issue with CleanAttributes filter and breaks when moved through the DOM and onParentNodeChanged is called
In scenarios where RadEditor is moved through the DOM the typical approach is to call the onParentNodeChanged method in order to re-render the editor. In Edge browser this does not work. CleanAtributes filter is alerted as failed and further RadEditor is unresponsive. 

Temporary solution is to switch the content area mode to DIV:

     <telerik:RadEditor ID="RadEditor1" runat="server" ContentAreaMode="Div" />
2 comments
Erik
Posted on: 18 Jan 2016 11:06
We use the editor within a RadWindow which is moved on the page also, but not by our code. So, we need to use onParentNode changed to make the editor work.

Happy to see this item is approved and we are waiting on a fix...!  
ADMIN
Nikolay
Posted on: 12 Dec 2015 13:05
Here is another solution:

<div id="container1">
	<telerik:RadEditor ID="RadEditor1" runat="server">
		<Content><p>test</p></Content>
	</telerik:RadEditor>
</div>

<div id="container2"></div>

<input type="button" onclick="moveEditor(); return false;" value="Move the Editor" />

<script type="text/javascript">
	function moveEditor() {
		var editor = $find("<%= RadEditor1.ClientID %>");
		var html = editor.get_html(true);

		document.getElementById("container2").appendChild(editor.get_element());

		editor._initContentAreaHtml(html, true);
		editor.onParentNodeChanged();
	};
</script>