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

Radeditor Lite on WSS cursur jumps to start of text

3 Answers 52 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Bartski
Top achievements
Rank 1
Bartski asked on 27 Jan 2011, 02:53 PM

We have a problem with the telerik radeditor on WSS v3. We are using the lite editor: 4.5.6

When clicking bold, italic, underline, justify, indent etc. tool buttons in the middle or at the end of some text the cursor jumps to the start of the text(box). When you select some text first the buttons work fine. Also when inserting a table somewhere in the middle of a text it always inserts the table at the start of the text.
Shortcuts like CTRL+B work fine when typing. 
Toolbuttons like Imagemanager or bullets and numbering work fine as well.

Any help would be much appreciated!

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 28 Jan 2011, 09:27 AM
Hi Bartski,

Regarding the table problem review the following forum post: http://www.telerik.com/community/forums/sharepoint-2007/lite-editor-for-moss/images-always-go-at-the-top-of-the-content-placeholder.aspx

Regarding the bold problem review the following forum post: http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-lost-cursor.aspx

 

Regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bartski
Top achievements
Rank 1
answered on 31 Jan 2011, 12:01 PM
Hi Stanimir,

thank you for the quick response.

adding the javascript to the MOSSEditorTools.js didn't solve the problem.

However when loading it directly at the end of the masterpage (in designmode..) within a script tag does make it work, perfectly 

<sharepoint:DesignModeConsoleContainer runat="server" >
<script type="text/javascript">
 
  RadEditor.prototype.SetActive = function() {
    if (this.IsIE) {
        var curArea = this.Document.body;
        if (curArea && curArea.setActive) curArea.setActive();
    }
};
 
  RadEditor.prototype.GetSelectedElement = function() {
    //fixes a problem in IE 8 where the image dialog inserts images only at the beginning of the content
    if (window.RadControlsNamespace.Browser.IsIE && document.documentMode) this.SetFocus();
 
    return this.GetSelection().GetParentElement();
};
 
var originalTableWizardCall = RadEditorCommandList[RadEditorNamespace.RADCOMMAND_TABLE_WIZARD];
RadEditorCommandList[RadEditorNamespace.RADCOMMAND_TABLE_WIZARD] = function(commandName, editor, oTool) {
    //fixes a problem in IE 8 where the table inserts only at the beginning of the content
    if (window.RadControlsNamespace.Browser.IsIE && document.documentMode) editor.SetFocus();
    //call the original function
    originalTableWizardCall(commandName, editor, oTool);
}
</script>
</sharepoint:DesignModeConsoleContainer>

0
Stanimir
Telerik team
answered on 31 Jan 2011, 03:51 PM
Hi Bartski,

Yes In the Lite version of RadEditor for MOSS the custom javascript should be loaded directly on the page where the control is added.


Best wishes,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Bartski
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Bartski
Top achievements
Rank 1
Share this question
or