Hi,
I created a new aspx-page and load the Editor using following code:
richtext.aspx
<script language="CS" runat="server">
protected void Page_Load()
{
RTE.Editor ed = new RTE.Editor();
ed.ID = "myEditor";
Page.Controls.Add(ed);
}
</script>
with the Event RichTextEditor_OnLoad
<script type='text/javascript'>
function RichTextEditor_OnLoad(editor)
{
editor.SetText("test123");
alert(editor._config.uniqueid);
}
</script>
Then I try to embed the richtext.aspx on an existing page using this:
$.post('otc_web/Framework/richtext.aspx', function(data) {
CurrentWindow.document.getElementById("richtext").innerHTML = data;
alert('Load was performed.');
});
Editor is loaded correctly, but none of the Events (e.g. RichTextEditor_OnLoad) are called. But this happens only on the embedded page. Events are called upon opening richtext.aspx directly.
I tried this on IE8 and IE9.
Am I missing something here? Anyone has any idea why the Events are not triggered on the embedded page?
Thanks in advance for any help!