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

MOSSLinkManager does not successfully insert the link

2 Answers 29 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Truong Hong Thi
Top achievements
Rank 1
Truong Hong Thi asked on 09 Jun 2010, 06:00 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 10 Jun 2010, 11:58 AM
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.
0
Truong Hong Thi
Top achievements
Rank 1
answered on 10 Jun 2010, 01:23 PM
It works. Thank you.
Tags
WebParts for SharePoint
Asked by
Truong Hong Thi
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Truong Hong Thi
Top achievements
Rank 1
Share this question
or