You can learn how the Paste option works in the following article Pasting Content Overview
the RadEditor’s paste functionality uses the browser’s DOM clipboard events.Therefore, any content pasted, is first processed by the browser. Images, HTML, MS Word, plain text etc., are data types that are first translated to HTML by the browser and then fetched via the clipboard event’s data to the editor. The content is already translated from Word syntax to HTML and RadEditor just consumes it. RadEditor does not have an idea what the content originally looked like and the pasting is controlled by the browser but not by RadEditor, which is similar to an enhanced <asp:TextBox> control.
If you'd like to change something in the Pasted content prior the insertion in the editor, you can attach to the OnClientPasteHtml client event
of RadEditor, check for the Paste command execution and modify the content provided by the args.get_value() method.
commandName = args.get_commandName();
value = args.get_value();
// The StripPathsFilter() method receives as a parameter an array of strings (devided by a white space) that will be stripped from the absolute links.
+ window.location.host; //returns the hostname and port number of the current URL
//strip the domain name from the absolute path
contentElement = document.createElement(
contentElement.innerHTML = value;
newElement = filter.getHtmlContent(contentElement);
//set the modified pasted content in the editor
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.