You can insert full HTML page content via the Template manager by implementing the steps below:
<telerik:RadEditor ID="RadEditor1" ExternalDialogsPath="~/EditorDialogs"
OnClientPasteHtml="OnClientPasteHtml" runat="server">
<Content>
</Content>
<TemplateManager ViewPaths="~/files" UploadPaths="~/files" />
</telerik:RadEditor>
getResult : function()
{
if (this._currentItem && this._currentItem.type == Telerik.Web.UI.Widgets.FileItemType.File && this.isValidExtension())
{
//OLD
//this._currentTemplateItem.contentWindow.getElementsByTagName("HTML")[0].innerHTML;
//NEW
var test = "<html>" + document.getElementsByTagName("IFRAME")[0].contentWindow.document.getElementsByTagName("HTML")[0].innerHTML + "</html>";
return test;
}
return null;
},
...
<telerik:RadEditor ID="RadEditor1" OnClientPasteHtml="OnClientPasteHtml" ExternalDialogsPath="~/EditorDialogs" runat="server">
<Content>
</Content>
<TemplateManager ViewPaths="~/files" UploadPaths="~/files" />
</telerik:RadEditor>
<script type="text/javascript">
function OnClientPasteHtml(editor, args)
{
var commandName = args.get_commandName(); //returns the command name
var value = args.get_value(); //returns the content / value of the fired command
if (commandName == "TemplateManager")
{
editor.set_html(value);
}
}
</script>