MOSSLinkManager does not successfully insert the link

3 posts, 1 answers
  1. Truong Hong Thi
    Truong Hong Thi avatar
    10 posts
    Member since:
    Jun 2010

    Posted 09 Jun 2010 Link to this post

    I use RadEditor lite for MOSS2007 (free version) to edit list items.
    Steps to reproduce:
    - Click New button to start creating a new item
    - use MOSSLinkManager to insert a link into one RTE. It works.
    - Use Backspace key to delete the link (the RTE become blank)
    - use MOSSLinkManager to insert a link. It does not work.
  2. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 10 Jun 2010 Link to this post

    Hi Truong,

    Thank you for the provided information. I was able to reproduce the issue. In order to fix it you need to modify the MOSSEditorTools.js file, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.x.x.x__1f131a624888eeed/RadControls/Editor/Scripts/7_3_6 folder. Locate the Telerik.Web.UI.Editor.CommandList["MOSSLinkManager"] = function (commandName, editor, args) method and add the following code right befor the configObj.ReturnCallback = function (newAssetUrl, newAssetText, currentConfig, dialogReturnedData) declaration: if (innerLinkHTML.match(/^\s*<P>&nbsp;<\/P>\s*$/) != null) innerLinkHTML = "";

    so the code should look like:
    ...
    if (innerLinkHTML.match(/^\s*<P> <\/P>\s*$/) != null) innerLinkHTML = "";
     
    configObj.ReturnCallback = function (newAssetUrl, newAssetText, currentConfig, dialogReturnedData)
    {
    ...




    Regards,
    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.

  3. Truong Hong Thi
    Truong Hong Thi avatar
    10 posts
    Member since:
    Jun 2010

    Posted 10 Jun 2010 Link to this post

    It works. Thank you.
Back to Top