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

[Solved] Q1 2009 SP1 - Paste PlainText using Ctrl+V in IE7 and FF

4 Answers 147 Views
Editor
This is a migrated thread and some comments may be shown as answers.
fquinty
Top achievements
Rank 1
fquinty asked on 06 Apr 2009, 03:07 PM
hello,

When using the Ctrl+V keys to paste text in my IE7, the text is pasted twice : at the cursor position (as expected) but also at the begining of the text.

This can be seen on the demo : Editor /default settings, if you paste text in the middle of the current text displayed : the first paste add the 'v' letter at the beginning and the second paste add twice the pasted text.

The paste runs fine using the functions : paste / paste from Word / paste Plaintext.

I am running the latest ASP.NET AJAX 2009 Q1 release.
It was not happening using the previous ASP.NET AJAX 2008 Q3 release.


Any idea?

Regards,

Frank Quinty

4 Answers, 1 is accepted

Sort by
0
Accepted
Tervel
Telerik team
answered on 06 Apr 2009, 04:09 PM
Hello,

This issue was reported earlier today.

Unfortunately, this problem is a side effect of a change that was implemented in the RadEditor fire method (the entry point for executing any editor command). The change was designed to cover two specific scenarios (one - related to invoking editor commands programmatically from external code, and the second - related to using shortcuts to expand editor tool strips).
While the change does streamline the code and unifies completely the command execution path (whichever its origin - be it editor tool, shortcut, external code, or dialog), it is this very unification that blurred the important difference between executing the Paste command as a keyboard shortcut (to be handled by the browser) or by editor tool (to be handled by editor code).

We are working on resolving the issue, and we will post an updated version of the editor within one day. For the time being you can resolve the problem by adding the following code to your page (before or after the RadEditor declaration):

Telerik.Web.UI.Editor.CommandList.old_Paste = Telerik.Web.UI.Editor.CommandList.Paste;
Telerik.Web.UI.Editor.CommandList.Paste = function(commandName, editor, args)
{
Telerik.Web.UI.Editor.CommandList.old_Paste(commandName, editor);
};

I am extremely sorry for the inconvenience,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Tervel
Telerik team
answered on 07 Apr 2009, 12:32 PM
Hello all,

The RadControls Q1 2009 SP1 download has been updated to correct this problem.
If you get a fresh copy from the downloads section and replace the Telerik.Web.UI.dll, Paste will work as expected.

I apologize for the inconvenience,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Grady Werner
Top achievements
Rank 1
answered on 07 Apr 2009, 02:24 PM
As always, you guys are awesome!  Bugs, we all know, are bound to occur.  Being able to get a fix in any timeframe under a week, however, is freakin amazing.  Kudos
0
Tervel
Telerik team
answered on 07 Apr 2009, 03:54 PM
Hello Grady,

Thank you for the kudos :)
On a side note, it's been a couple of months ago since we introduced the ability to download Latest Internal Builds - as outlined here:
http://telerikwatch.com/2009/01/latest-internal-radcontrol-builds-now.html
http://blogs.telerik.com/blogs/09-01-07/Download_Latest_Internal_Builds.aspx

In this particular case, however, the problem (despite its simple solution) was considered important enough to integrate into the actual SP1 immediately so as to prevent more people from experiencing the problem at all.


All the best,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
fquinty
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Grady Werner
Top achievements
Rank 1
Share this question
or