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

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

3 Answers 43 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Bartek A
Top achievements
Rank 1
Bartek A asked on 18 May 2010, 09:06 AM
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.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 May 2010, 12:05 PM
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.
0
Bartek A
Top achievements
Rank 1
answered on 19 May 2010, 08:36 AM
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
0
Accepted
Stanimir
Telerik team
answered on 19 May 2010, 04:13 PM
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.
Tags
WebParts for SharePoint
Asked by
Bartek A
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Bartek A
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or