
Thanks,
Steve Holdorf
8 Answers, 1 is accepted
Solution to a similar request is available in the following forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-toolbar-close-x-button-doesn-t-work-sometimes.aspx
Sincerely yours,
Dobromir
the Telerik team

Thanks,
Steve Holdorf

To clairfy:
The RadWindow on my main page has a NavigateURL="NewEditorPage.aspx" and the NewEditorPage.aspx contains the second RadEditor. Now, I don't know if this is possible wiithout db calls but I really need to handle this through javascript. Also, I need to save the updated content back via javascript.
What I was using to load the content of a single RadEditor into a RadWindow is as follows but it doesn't work:
javascript>
var editorContent = null;
Telerik.Web.UI.Editor.CommandList["RichEditor"] = function (commandName, editor, args) {
editorContent = editor.get_html(true);
$find("<%=DialogWindow.ClientID%>").show();
};
function SetEditorContent(content) {
$find("<%=RadEditor1.ClientID%>").set_html(content);
}
function SetDialogContent(oWnd)
{
var contentWindow = oWnd.,get_ContentFrame().contentWindow;
if (contentWindow && contentWindow.SetContent)
{
window.setTimeout(function ()
{contentWindow.setContent(editorContent); }, 5000);
}
}
Again the above javascript doesn't work for me. Please help. Also, one final thing. In your sample code the RadWindow has a NavigationURL of "EditorInWindow.aspx" and you example makes no reference of such a page?
Thanks,
Steve Holdorf

In your example I see that the DefaultCS.aspx inherits from the Example EditorInWindow. I have created a new blank project and inserted your code. Still, when the new RadWindow opens not editor appears. There must be a problem with the javascript. Please help
Thanks,
Steve

Thanks,
Steve
Did you put the following function in the page loaded in RadWindow dialog:
function setContent(content)
{
var editor = $find("<%=RadEditor1.ClientID%>");
if (editor) editor.set_html(content); //set content from the parent page to RadEditor in RadWindow
}
The setContent function is fired from the
function SetDialogContent(oWnd)
{
var contentWindow = oWnd.get_contentFrame().contentWindow;
if (contentWindow && contentWindow.setContent)
{
window.setTimeout(function()
{
//pass and set the content from the mane page to RadEditor in RadWindow
contentWindow.setContent(editorContent);
}, 500);
}
}
function attached to the OnClientShow event property of RadWindow.
For your convenience I prepared and attached a sample working project which demonstrates the functionality shown in the Editor in RadWindow demo. You can use it as a base to achieve your exact scenario.
Best regards,
Rumen
the Telerik team

As always, Thanks!
Steve Holdorf
Thank you for the useful suggestion.
I updated the demo with an infopanel control which highlights the following important information:
This demo contains a dialog page for the "Open Advanced Editor" window. To view it, hover over the dropdown button in the Example Source Code & Description section and press the "EditorInWindow.aspx" item.
All the best,
Rumen
the Telerik team