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:
VS2008 SP1
.Net framework 3.5 SP1
Telelerik DLL 2008.2.826.35
script folder containing all external scripts:
~/script/telerik/* (all telerik scripts)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.21022.8/* (MS Ajax 3.5)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.30729.1/* (MS Ajax 3.5 SP1)
Default.aspx:
Default.aspx.cs:
Web.Config:
EditorTools.xml:
I would be grateful if this can be looked into ASAP. I guess it may be another script ordering problem or missing script. The order and scripts were obtained from your help http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html
Kind regards,
Rob
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:
VS2008 SP1
.Net framework 3.5 SP1
Telelerik DLL 2008.2.826.35
script folder containing all external scripts:
~/script/telerik/* (all telerik scripts)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.21022.8/* (MS Ajax 3.5)
~/script/ajax/System.Web.Extensions/3.5.0.0/3.5.30729.1/* (MS Ajax 3.5 SP1)
Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadEditor._Default" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
<telerik:radscriptmanager runat="server" id="TelerikScriptManager" enablescriptcombine="false" enablepartialrendering="true" loadscriptsbeforeui="false" enableviewstate="false" enablescriptglobalization="true" enablescriptlocalization="true" scriptmode="Release" /> |
<telerik:radeditor runat="server" id="radEditor1" enabletheming="True" stripformattingonpaste="AllExceptNewLines" toolsfile="~/EditorTools.xml" newlinebr="False" language="en-GB"> |
<Content> |
</Content> |
</telerik:radeditor> |
</div> |
</form> |
</body> |
</html> |
Default.aspx.cs:
using System; |
using System.Collections; |
using System.Configuration; |
using System.Data; |
using System.Linq; |
using System.Web; |
using System.Web.Security; |
using System.Web.UI; |
using System.Web.UI.HtmlControls; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Xml.Linq; |
using Telerik.Web.UI; |
namespace RadEditor |
{ |
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
if (ConfigurationManager.AppSettings["Telerik.EnableEmbeddedScripts"].ToLower() == "false") |
{ |
ScriptManager manager = System.Web.UI.ScriptManager.GetCurrent(this.Page); |
// Microsoft Ajax |
manager.ScriptPath = "~/script/ajax"; |
// Telerik Scripts |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Common/Core.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Common/Popup/PopupScripts.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/RadEditor.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Dialogs/DialogOpener.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/Modules.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Spell/SpellCheckService.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Editor/AjaxSpellCheck.js")); |
manager.Scripts.Add(new ScriptReference("~/script/telerik/Window/RadWindow.js")); |
} |
} |
} |
} |
Web.Config:
<?xml version="1.0"?> |
<configuration> |
<configSections> |
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> |
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> |
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> |
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> |
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> |
</sectionGroup> |
</sectionGroup> |
</sectionGroup> |
</configSections> |
<appSettings> |
<add key="Telerik.EnableEmbeddedScripts" value="false"/> |
</appSettings> |
<connectionStrings/> |
<system.web> |
<!-- |
Set compilation debug="true" to insert debugging |
symbols into the compiled page. Because this |
affects performance, set this value to true only |
during development. |
--> |
<compilation debug="true"> |
<assemblies> |
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
</assemblies> |
</compilation> |
<!-- |
The <authentication> section enables configuration |
of the security authentication mode used by |
ASP.NET to identify an incoming user. |
--> |
<authentication mode="Windows"/> |
<!-- |
The <customErrors> section enables configuration |
of what to do if/when an unhandled error occurs |
during the execution of a request. Specifically, |
it enables developers to configure html error pages |
to be displayed in place of a error stack trace. |
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> |
<error statusCode="403" redirect="NoAccess.htm" /> |
<error statusCode="404" redirect="FileNotFound.htm" /> |
</customErrors> |
--> |
<pages> |
<controls> |
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
<add assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik"/> |
</controls> |
</pages> |
<httpHandlers> |
<remove path="*.asmx" verb="*" /> |
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" |
validate="false" /> |
<add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" |
validate="false" /> |
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" |
validate="false" /> |
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
validate="false" /> |
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
validate="false" /> |
</httpHandlers> |
<httpModules> |
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
</httpModules> |
</system.web> |
<system.codedom> |
<compilers> |
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
<providerOption name="CompilerVersion" value="v3.5"/> |
<providerOption name="WarnAsError" value="false"/> |
</compiler> |
</compilers> |
</system.codedom> |
<!-- |
The system.webServer section is required for running ASP.NET AJAX under Internet |
Information Services 7.0. It is not necessary for previous version of IIS. |
--> |
<system.webServer> |
<validation validateIntegratedModeConfiguration="false"/> |
<modules> |
<remove name="ScriptModule"/> |
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
</modules> |
<handlers> |
<remove name="WebServiceHandlerFactory-Integrated"/> |
<remove name="ScriptHandlerFactory"/> |
<remove name="ScriptHandlerFactoryAppServices"/> |
<remove name="ScriptResource"/> |
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
</handlers> |
</system.webServer> |
<runtime> |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
<dependentAssembly> |
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> |
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> |
</dependentAssembly> |
<dependentAssembly> |
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> |
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> |
</dependentAssembly> |
</assemblyBinding> |
</runtime> |
</configuration> |
|
EditorTools.xml:
<?xml version="1.0" encoding="utf-8" ?> |
<root> |
<modules> |
<module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true" dockable="true" /> |
</modules> |
<tools name="toolbar1" dockable="true" enabled="true"> |
<tool name="FormatBlock" /> |
<tool separator="true" /> |
<tool name="Bold" /> |
<tool name="Italic" /> |
<tool separator="true" /> |
<tool name="Indent" /> |
<tool name="Outdent" /> |
<tool separator="true" /> |
<tool name="InsertOrderedList" /> |
<tool name="InsertUnorderedList" /> |
</tools> |
<tools name="toolbar2" dockable="true" enabled="true"> |
<tool name="FindAndReplace" /> |
<tool separator="true" /> |
<tool name="Cut" /> |
<tool name="Copy" /> |
<tool name="Paste" /> |
<tool separator="true" /> |
<tool name="Undo" /> |
<tool name="Redo" /> |
</tools> |
<tools name="toolbar3" dockable="true" enabled="true"> |
<tool name="Superscript" /> |
<tool name="Subscript" /> |
<tool separator="true" /> |
<tool name="InsertParagraph" /> |
<tool name="InsertHorizontalRule" /> |
<tool name="InsertTable" /> |
</tools> |
<tools name="toolbar4" dockable="true" enabled="true"> |
<tool name="LinkManager" /> |
<tool name="Unlink" /> |
</tools> |
<tools name="toolbar5" dockable="true" enabled="true"> |
<tool name="FormatStripper" /> |
<tool name="XhtmlValidator" /> |
<tool name="ToggleScreenMode" /> |
</tools> |
<paragraphs> |
<paragraph value="<p>" name="Normal" /> |
<paragraph value="<h1>" name="<h1>Heading 1</h1>" /> |
<paragraph value="<h2>" name="<h2>Heading 2</h2>" /> |
<paragraph value="<h3>" name="<h3>Heading 3</h3>" /> |
<paragraph value="<h4>" name="<h4>Heading 4</h4>" /> |
<paragraph value="<h5>" name="<h5>Heading 5</h5>" /> |
</paragraphs> |
</root> |
I would be grateful if this can be looked into ASAP. I guess it may be another script ordering problem or missing script. The order and scripts were obtained from your help http://www.telerik.com/help/aspnet-ajax/disabling_embedded_resources.html
Kind regards,
Rob