Here's your better solution. I worked on this for a long time, unfortunately, before finding the simple answer.
<script language="javascript"> function FCKeditor_OnComplete(editorInstance) { editorInstance.Events.AttachEvent('OnAfterLinkedFieldUpdate',escapeValue) } function escapeValue(editorInstance) { editorInstance.LinkedField.value = escape(editorInstance.LinkedField.value); } </script>
the FCKeditor_OnComplete(editorInstance) function is looked for by the FCKEditor itself, it has to be named exactly that. In there, you set up your events (my handler for the 'OnAfterLinkedFieldUpdate' event is called called "escapeValue"). The events you can pick up are listed on the other site, if you need the other ones, this was all I wanted. So basically, this event fires AFTER THE LINKED FIELD IS UPDATED. Woot. So just change the field after it's been updated, and you're in business. The linked hidden field is what's being posted, btw. So here I'm using the javascript "escape" function to encode the html so ASP.NET doesn't puke.
RE: ASP.NET validateRequest solution
RE: ASP.NET validateRequest solution
<script language="javascript">
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.Events.AttachEvent('OnAfterLinkedFieldUpdate',escapeValue)
}
function escapeValue(editorInstance)
{
editorInstance.LinkedField.value = escape(editorInstance.LinkedField.value);
}
</script>
the FCKeditor_OnComplete(editorInstance) function is looked for by the FCKEditor itself, it has to be named exactly that. In there, you set up your events (my handler for the 'OnAfterLinkedFieldUpdate' event is called called "escapeValue"). The events you can pick up are listed on the other site, if you need the other ones, this was all I wanted. So basically, this event fires AFTER THE LINKED FIELD IS UPDATED. Woot. So just change the field after it's been updated, and you're in business. The linked hidden field is what's being posted, btw. So here I'm using the javascript "escape" function to encode the html so ASP.NET doesn't puke.