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

Cannot paste content into Rad Editor when in design mode

4 Answers 245 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Michael Kniskern
Top achievements
Rank 1
Michael Kniskern asked on 10 Feb 2016, 12:53 AM

I cannot paste content into the Rad Editor control when it is in design mode.  I have tried both the command defined in the ToolsFile attribute and default windows command (CTRL + V).  I am able to paste content when it is in HTML view.  Here is my code:

<telerik:RadEditor ID="radMessageBody" runat="server" RenderMode="Lightweight" NewLineMode="Br" ToolsFile="~/xml/BasicTools.xml" ContentAreaCssFile="~/css/EditorContentArea.css" />

<root>
    <tools name="MainToolbar" dockable="true" enabled="true">
 <tool name="FindAndReplace" /><br>    <tool separator="true"/><br>    <tool name="Undo" /><br>    <tool name="Redo" /><br>    <tool separator="true"/><br>    <tool name="Cut" /><br>    <tool name="Copy" /><br>    <tool name="Paste" shortcut="CTRL+!" /><br>  </tools><br>  <tools name="Formatting" enabled="true" dockable="true"><br>    <tool name="Bold" /><br>    <tool name="Italic" /><br>    <tool name="Underline" /><br>    <tool separator="true"/><br>    <tool name="ForeColor" /><br>    <tool name="BackColor"/><br>    <tool separator="true"/><br>    <tool name="FontName"/><br>    <tool name="RealFontSize"/><br>  </tools><br></root>

It does not work in either Chrome and IE.

Any ideas how to resolve this?

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 Feb 2016, 04:27 PM
Hi Michael,

I tested the provided configuration on my side but the Editor behaves as expected both in Chrome and IE. Can you take a look at my test and see whether I am not leaving anything out? - http://screencast.com/t/Z3Fq6SyK3Y

Can you provide some more details on the matter?
  • Are you reproducing the problem in our online demos?
  • Which version of the controls is used in your application?
  • Are there any JavaScript errors thrown on the page when the issue occurs?

Looking forward to your reply,
Vessy
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Hossein
Top achievements
Rank 1
Iron
answered on 15 Mar 2016, 02:27 PM
We have upgraded the application we built using Telerik (to the latest version 2016.1.225.45 ) and RadEditor Paste functionality is not working as well. There was no change in environment other than upgrading telerik. I will do more investigation put feedback. 
0
Hossein
Top achievements
Rank 1
Iron
answered on 15 Mar 2016, 05:59 PM

After some more investigation I found out that I had ASP.NET validator in the page (I think any validator cause this  but I had custom validator). From another experience I remember that if the issue is from validator we have to put a appsettings in web.config so I added the following line in web.config (under appsettings) and the issue is resolved  

    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />  

0
Vessy
Telerik team
answered on 16 Mar 2016, 02:55 PM
Hi Hossein,

I am really glad you have have managed to find the cause of the problem and the Editor is working properly on your side now. Thanks a lot for sharing your solution with our community.

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
Michael Kniskern
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Hossein
Top achievements
Rank 1
Iron
Share this question
or