RADEditor not working with embedded scripts turned off

Hi there,
our applications run with embedded scripts switched off and the scripts served from a separate domain. We now have a need to use the RADEditor, but the streamed popup windows (link manager, image manager, etc.) cause javascript errors. I have confirmed this with a small project as follows:

Rumen

The problem is that when you set the <add key="Telerik.EnableEmbeddedScripts" value="false"/> in web.config this affects all Telerik controls. However, each editor's dialog uses different set of Telerik controls in it such as RadFormDecorator, RadTabStrip etc and their scripts cannot be imported manually because the dialogs are embedded in the Telerik.Web.UI.dll file.

What you can do is to copy/paste the EditorDialogs installation folder to the root of your web application and set the ExternalDialogsPath property to point to this folder. This will allow you to manually import the needed dialog scripts.

If you are OK with this scenario, we can send you a detailed list with all scripts tags that you need to import in the different external dialogs. Just let us know.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.

I'm replying in Rob's absence (he's out of the office today). This scenario is ideal, because we have been looking at the possibility of making minor changes to the dialogs anyway, so if you could send us the detailed list of scripts required for the dialogs that would be perfect.

Kind regards,

Zoë Colburn

Rumen

Since the different dialogs use different scripts depending on the controls residing in them, could you please specify the dialogs that you will use, so that I can send you a list of the scripts that you need to import manually in them.

Thank you in advance.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.

thanks for your reply.
I have tried your suggestion and confirmed the editors are external, but adding the specified scripts directly into the dialogs still results in the error we had before that the basetype in the registerClass function cannot be null.
Would you mind showing me an example of the editor working with just the linkmanager using external scripts? Alternatively I can send you my test project.

Kind regards,

Rob

Rumen

It will be best if you send us a sample working project via the support ticketing system which demonstrates the problem. This will help us to quickly identify the reason for the problem and provide appropriate help.

Looking forward to hearing from you,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.

savindag

I'm facing a similar problem with the customised LinkManager dialog where the page is having script errors. Some of the errors could be resolved by adding the control's script to the EditorDialogs/LinkManager.ascx but the following script error still remains. I'm using the Q2 2009 Ajax ASP.net version and I couldn't find the scripts/widgets/ folder as well.

Rumen

My recommendation is to upgrade to the latest official version of RadEditor for ASP.NET AJAX Q1 2010 SP2 (version 2010.1.519) and register the CDN scripts of the control. This way the scripts will be loaded automatically from an external source.

Another approach is to manually register the RadTabStrip scripts. After that if another control throws an error that it is not able to locate its scripts then register the needed scripts manually too.

Kind regards,
Rumen
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

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.