IE8 - paste text with use of menu button when nothing is selected

4 posts, 1 answers
  1. Bartek A
    Bartek A avatar
    2 posts
    Member since:
    May 2010

    Posted 18 May 2010 Link to this post

    I have an issue with one functionality. In IE8 when I'm trying to paste text from clipboard with use of button "paste" from toolbar (nothing is selected in editor) it just move cursor at the beginning of text area. What is a reason of that?

    PS. Paste functionality works fine with use shortcut Ctrl+V.
  2. Rumen
    Admin
    Rumen avatar
    12847 posts

    Posted 18 May 2010 Link to this post

    Hi Bartek,

    RadEditor Lite for MOSS is based on RadEditor Classic which does not support Internet Explorer 8. The development of RadEditor Classic was discontinued in favor of the new and much enhanced RadEditor for ASP.NET AJAX more than 1.5 years ago. The Ajax based editor is the core of the paid version of RadEditor for MOSS.

    The recommended solution is to upgrade to the full featured and paid RadEditor for MOSS (based on RadEditor for ASP.NET AJAX) which offers full support for IE8, multiple bug fixes and many new features. The new editor loads multiple times faster than its predecessor as well. The upgrade instructions are available in this help article.

    If you are unable to upgrade to the new editor at the moment you can try the following code that should be put under the RadEditor Placeholder declaration:

    <script type="text/javascript">

    RadEditor.prototype.GetSelectedElement = function()

     {

      if (window.RadControlsNamespace.Browser.IsIE && document.compatMode) this.SetFocus();

     

      return this.GetSelection().GetParentElement();

     };

    </script>


    You can use the SharePoint Designer to put the code in the page with RadEditor.

    Best regards,
    Rumen
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.

  3. Bartek A
    Bartek A avatar
    2 posts
    Member since:
    May 2010

    Posted 19 May 2010 Link to this post

    Hi Rumen,

       I have tested your solution with appended javascript but it didn't help in my case. Functionality of PASTE button is as it was (it doesn't paste if nothing is selected).

    BR
    Bartek
  4. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 May 2010 Link to this post

    Hello Bartek A,

    Try the following javascript code. You can add it at the end of the master page in your MOSS site.
    if (typeof(RadEditorCommandList) != "undefined")
    {
        var oldPasteCommand = RadEditorCommandList[RadEditorNamespace.RADCOMMAND_PASTE];
        RadEditorCommandList[RadEditorNamespace.RADCOMMAND_PASTE] = function (commandName, editor, oTool)
        {
            if  (window.RadControlsNamespace.Browser.IsIE && document.compatMode)
            editor.SetFocus();
        return oldPasteCommand(commandName, editor, oTool);
        }
    }



    Greetings,
    Stanimir
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top