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

RadEditor breaks functioning of AssetUrlSelector

4 Answers 104 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
mayerh2
Top achievements
Rank 1
mayerh2 asked on 13 Jul 2007, 08:22 PM
We have a PageLayout containing the RadEditor Control and the AssetUrlSelector. The Browse Button of the AssetUrlSelector (which opens a Browse Dialog) does not work anymore then (no Dialog is opened). Without the RadEditor being there, the AssetUrlSelector works fine.

html of Browse Button of AssetUrlSelector :
    <span id="ctl00_PlaceHolderMain_ctl01_ctl00" FieldName="AMCContactReference"><NOBR><input name="ctl00$PlaceHolderMain$ctl01$ctl00$AssetUrlInput" type="text" id="ctl00_PlaceHolderMain_ctl01_ctl00_AssetUrlInput" title="Select a Link" class="ms-input" dir="ltr" Size="35" AlwaysEnableSilent="true" />&nbsp;<input type="button" name="ctl00$PlaceHolderMain$ctl01$ctl00$PickerLaunchButton" value="Browse..." onclick="APD_LaunchAssetPickerUseConfigCurrentUrl( 'ctl00_PlaceHolderMain_ctl01_ctl00' ); return false; ;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$PlaceHolderMain$ctl01$ctl00$PickerLaunchButton&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))" id="ctl00_PlaceHolderMain_ctl01_ctl00_PickerLaunchButton" class="ms-ButtonHeightWidth" /></NOBR></span>

Hugo Mayer


P.S:
Can it be that this Problem is solved with the Full Version of RadEditor(we will use the full version anyway instead of the lite version)?

4 Answers, 1 is accepted

Sort by
0
mayerh2
Top achievements
Rank 1
answered on 13 Jul 2007, 08:49 PM
Environment is MOSS 2007, using PublishingWebControls:AssetUrlSelector.
Hugo
0
Lini
Telerik team
answered on 18 Jul 2007, 07:53 AM
Hello,

Thank you for the report. We are currently investigating the issue. The problem seems to be that the AssetPickers.js file is registered twice on the page. The second instance of the file clears the settings from the first one (including the AssetUrlSelector). We will do our best to fix this problem for the next editor for MOSS release.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
mayerh2
Top achievements
Rank 1
answered on 18 Jul 2007, 10:24 PM
Yes, the AssetPickers.js file is registered twice, this is the cause uf the problem.

We have found a preliminal work around, which works for the time being:
In the file AssetPickers.js in .../12/LAYOUTS/1033 we replace

var APD_AssetConfigGlobalObjectDictionary=new Object;

by

var APD_AssetConfigGlobalObjectDictionary=(typeof(APD_AssetConfigGlobalObjectDictionary) =="undefined")?new Object:APD_AssetConfigGlobalObjectDictionary;

0
Lini
Telerik team
answered on 19 Jul 2007, 05:54 AM
Hi Hugo,

We have fixed the bug in RadEditor for MOSS so now the AssetPickers.js file should be loaded just once. The fix will be included in the next release but the workaround you posted here is a valid solution as well.

Regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
mayerh2
Top achievements
Rank 1
Answers by
mayerh2
Top achievements
Rank 1
Lini
Telerik team
Share this question
or