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

[Solved] Can't copy and paste Into Editor MVC 3

7 Answers 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard
Top achievements
Rank 1
Richard asked on 21 Feb 2011, 04:26 AM
Using the Editor, I'm having problems where I am attempting to cut some text from Word for example and pasting this text into the editor. When I right mouse click, the cut and paste menu is displayed, however when I click "Paste" the text is not displayed in the editor. I also tried, Ctrl X and Ctrl v with no success. Is there a setting to enable cut and paste?

Thanks in advance.

Richard

7 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 21 Feb 2011, 07:42 AM
Ok, Found out the problem.

I was using ViewBag instead of ViewData.

I changed my field to be ViewData["PositionDetails"] instead of ViewBag.PositionsDetails. Once I did that, I can now cut and paste from word into the editor.

New Code is :
    

@{Html.Telerik().TabStrip()

            .Name("tabStrip")

            .Items(items =>

                {

                    items.Add().Text("Details")

                       .Content(() =>

                           {

                               Html.Telerik().Editor()

                                .Name("details")                               

                                .Value(  ViewData["PositionDetails"].ToString())

                                .Render();

                           });

                    items.Add().Text("Notes on Position")

                        .Content(() =>

                          {

                              Html.Telerik().Editor()

                               .Name("notes")

                               .Value(ViewData["PositionNotes"].ToString())

                               .Render();

                          });

                })

            .SelectedIndex(0)

            .Render();

         }      

0
Richard
Top achievements
Rank 1
answered on 24 Feb 2011, 06:25 AM

Just a follow up. I didn’t realise that If I turn on compatibility mode on IE 9 copy and paste works in the editor. However, If I turn off compatibility then IE will not allow to copy and paste.  I tried in Google chrome and seems to work ok.

0
Accepted
T. Tsonev
Telerik team
answered on 24 Feb 2011, 09:15 AM
Hi Richard,

We discovered a number of issues with the Editor in IE9 due to breaking changes in their text range implementation. The copy/paste problem is a result of this.

We've worked around the problems and the Q1 Beta release that is due for release today works much better.

MS have already acknowledged the problem. Hopefully, they will fix it for the official release.

Best Regards,
Tsvetomir Tsonev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Judy
Top achievements
Rank 1
answered on 19 Jan 2012, 06:02 PM
I'm still experiencing the issue in IE8 with the latest version. Has this really been addressed?
0
Georgi Tunev
Telerik team
answered on 23 Jan 2012, 02:23 PM
Hi Linda,

 Do you experience the same problem in any of our online editor demos? If the problem exists in your application only, please send us a sample project so we can investigate further.

All the best,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Judy
Top achievements
Rank 1
answered on 21 Mar 2012, 12:45 AM
We still have the same problem even with your online editor demos in Internet Explorer 8 on Windows Server 2008 R2.
0
Georgi Tunev
Telerik team
answered on 23 Mar 2012, 09:38 AM
Hi again Linda,

Do you by any chance have the IE Enhanced Security enabled on that machine? If so, the security module limits the browser experience and, as far as I remember, limits the access to the clipboard. If indeed the IE ES is enabled, could you please try turning it off and see if it changes the behavior of the control on your side?

Kind regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Editor
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
T. Tsonev
Telerik team
Judy
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or