
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> | |
| <Scripts> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Common/Core.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Common/PopUp/PopUpScripts.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Editor/RadEditor.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Dialogs/DialogOpener.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Editor/Modules.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Spell/SpellCheckService.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Editor/AjaxSpellCheck.js" /> | |
| <asp:ScriptReference Path="~/Javascript/Scripts/Window/RadWindow.js" /> | |
| </Scripts> | |
| </telerik:RadScriptManager> |
| <link href="/Skins/Window.css" rel="stylesheet" type="text/css" /> | |
| <link href="/Skins/Editor.css" rel="stylesheet" type="text/css" /> | |
| <link href="/Skins/Office2007/Window.Office2007.css" rel="stylesheet" type="text/css" /> | |
| <link href="/Skins/Office2007/Editor.Office2007.css" rel="stylesheet" type="text/css" /> |
| <telerik:RadEditor ID="reDocument" Runat="server" | |
| Skin="Office2007" | |
| Height="385px" EnableResize="true" | |
| Width="100%" AutoResizeHeight="false" | |
| StripFormattingOnPaste="None" | |
| StripFormattingOptions="None" | |
| EditModes="Design" | |
| EnableEmbeddedSkins="false" | |
| EnableEmbeddedScripts="True" | |
| EnableEmbeddedBaseStylesheet="true" |
Hi,
Previously I used RadEditor for ASP.Net but I'm now implementing RadEditor for ASP.Net AJAX.
I'm trying to get it so that when you select a template in template manager it replaces all the HTML in the editor with the HTML from the selected template.
In RadEditor for ASP.Net I obtained the following from the forums. This worked as required but doesn't in the latest RadEditor. What is the solution now?
Thanks
Tim Metcalfe
<script type="text/javascript">
var templateManagerCommand = RadEditorCommandList["TemplateManager"];
RadEditorCommandList["TemplateManager"] = function(commandName, editor, oTool)
{
templateManagerCommand (commandName, editor, callBackFn);
function callBackFn(result)
{
if (result)
{
editor.SetHtml(result);
};
}
};
</script>
