Hi,
I am using CKEditor 3.5.3. I want to use the control's TextChanged Event.
But whenever I am trying to register the same on the PageLoad event of the page, the event is not getting fired. Any suggestion is greatly apprciated.
<script language="C#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
protected void CKEditor1_TextChanged(object sender, EventArgs e)
{
Response.Write("Text Changed");
}
}
</script>
<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200"
ontextchanged="CKEditor1_TextChanged"></CKEditor:CKEditorControl>
I am using CKEditor 3.5.3. I want to use the control's TextChanged Event.
But whenever I am trying to register the same on the PageLoad event of the page, the event is not getting fired. Any suggestion is greatly apprciated.
<script language="C#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
protected void CKEditor1_TextChanged(object sender, EventArgs e)
{
Response.Write("Text Changed");
}
}
</script>
<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200"
ontextchanged="CKEditor1_TextChanged"></CKEditor:CKEditorControl>

Re: OntextChanged Event Handler
I can do with the method : CKEDITOR.instances.CKEditor1.getData()
But I have a problem now.
My requirement is that - I need to find out the cursor position in the textarea of the CKEDITOR. Based on this, the value the user selects from another MODAL window will get embeded at the location the cursor was initially placed inside the TextArea.
Any help is greatly appreciated.
Thanks,
Anirban