I am trying to disable the editor. I am using Saulmade's function found at http://www.saulmade.nl/FCKeditor/FCKSnippets.php.
However it does not even make into that code before it fails with object expected. I am using asp.net and vb.net 2.0. I even hardcoded the FCKEditor_Complete event in the page not using and register script block code and it still fails. I get to the event but as soon as i call the next line that uses the control boom it blows up. See code below:
<script language="javascript" type="text/javascript">
function FCKeditor_OnComplete (editorInstance) {
debugger;
toggleFCKeditor(editorInstance);
}
</script>
It fails on the code below in the fckeditorcode_ie.js file.
var FCKEvents=function(A){this.Owner=A;this._RegisteredEvents={};};FCKEvents.prototype.AttachEvent=function(A,B){var C;if (!(C=this._RegisteredEvents[A])) this._RegisteredEvents[A]=[B];else{if (C.IndexOf(B)==-1) C.push(B);}};FCKEvents.prototype.FireEvent=function(A,B){var C=true;var D=this._RegisteredEvents[A];if (D){for (var i=0;i<D.length;i++){try{C=(D[i](this.Owner,B)&&C);}catch(e){if (e.number!=-2146823277) throw e;}}};return C;};
Any help would be greatly appreciated, since I have been trying to get this to work all morning now and still no luck.
Thanks.
Fet
Thu, 02/07/2008 - 19:16
#1