RadEditor breaks functioning of AssetUrlSelector

5 posts, 0 answers
  1. mayerh2
    mayerh2 avatar
    14 posts
    Member since:
    Jun 2007

    Posted 13 Jul 2007 Link to this post

    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)?

  2. mayerh2
    mayerh2 avatar
    14 posts
    Member since:
    Jun 2007

    Posted 13 Jul 2007 Link to this post

    Environment is MOSS 2007, using PublishingWebControls:AssetUrlSelector.
    Hugo

  3. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 18 Jul 2007 Link to this post

    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
  4. mayerh2
    mayerh2 avatar
    14 posts
    Member since:
    Jun 2007

    Posted 18 Jul 2007 Link to this post

    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;

  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 19 Jul 2007 Link to this post

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