Radeditor Lite on WSS cursur jumps to start of text

4 posts, 0 answers
  1. Bartski
    Bartski avatar
    4 posts
    Member since:
    Mar 2009

    Posted 27 Jan 2011 Link to this post

    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!

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 28 Jan 2011 Link to this post

    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.

  3. Bartski
    Bartski avatar
    4 posts
    Member since:
    Mar 2009

    Posted 31 Jan 2011 Link to this post

    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>

  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 31 Jan 2011 Link to this post

    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.
Back to Top