Completed
Last Updated: 27 Jul 2016 11:44 by ADMIN
ADMIN
Joana
Created on: 29 Jun 2016 03:50
Category: Editor
Type: Feature Request
0
Pasting is impossible under Edge with TrackChanges or Comments enabled
http://localdemos.telerik.com/aspnet-ajax-fixes/editor/examples/trackchanges/defaultcs.aspx


Paste some content in the Editor
Expected: The pasted content is displayed and tracked

Actual: Nothing is pasted

Workaround:
<telerik:RadEditor ID="RadEditor1" runat="server" EnableTrackChanges="true">
	<Content>
		<p>test</p>
		<p>test</p>
	</Content>
</telerik:RadEditor>

<script type="text/javascript">
	if (Telerik.Web.Browser.edge) {
		var editorPrototype = Telerik.Web.UI.RadEditor.prototype;
		var origKeydownHandler = editorPrototype._onKeyDown;
		editorPrototype._onKeyDown = function (ev) {
			var shortCut = this.get_shortCutManager().isShortCutHit(ev);
			if (!shortCut || shortCut.get_name() != "Paste") {
				origKeydownHandler.call(this, ev);
			}
		}
	}
</script>
0 comments