Currently we are working on a new project. With the new RadRibbonBar (using v.2011.1.315.40) - which is very nice - we decide to try to implement a RibbonBar for the RadEditor. Basically we are rewiring all the calls to the RadEditor using the javascript fire() method just as in the example at the demo site.
Sofar this was working perfectly. However when doing:
we will get the javascript error:
"Runtime-fout Microsoft JScript: Sys.ArgumentNullException: Dialog Parameters for the MediaManager dialog do not exist
Parameter name: dialogName"
A trace on the editor javascript object showed that
Is expected but does not exists. (See attachment) For all to other dialogs like 'LinkManager' or 'TableWizard' it the DialogDefinitions are set.
---
To overcome this problem we tried to create a work-arround:
However this is not the full solution.. Because the ImageManager is now loaded. To make the work-arround functional de SerizalizedParameter of the Media Manager is required. Sofar we didn't find out how to get this Parameter.
Hope you can fix this bug and tell us how to get that SerizalizedParameter or tell us that we are doing something realy wrong here...
Sofar this was working perfectly. However when doing:
editor.fire(
"MediaManager"
);
we will get the javascript error:
"Runtime-fout Microsoft JScript: Sys.ArgumentNullException: Dialog Parameters for the MediaManager dialog do not exist
Parameter name: dialogName"
A trace on the editor javascript object showed that
editor._dialogOpener._dialogDefinitions.MediaManager
Is expected but does not exists. (See attachment) For all to other dialogs like 'LinkManager' or 'TableWizard' it the DialogDefinitions are set.
---
To overcome this problem we tried to create a work-arround:
var
ImageManagerDefinitions = editor._dialogOpener._dialogDefinitions.ImageManager;
var
MediaManagerDefinitions = objectCloner(ImageManagerDefinitions)
MediaManagerDefinitions.Title =
"Media Manager"
;
editor._dialogOpener._dialogDefinitions.MediaManager = MediaManagerDefinitions;
However this is not the full solution.. Because the ImageManager is now loaded. To make the work-arround functional de SerizalizedParameter of the Media Manager is required. Sofar we didn't find out how to get this Parameter.
Hope you can fix this bug and tell us how to get that SerizalizedParameter or tell us that we are doing something realy wrong here...