I am trying to wire up some events using the FCKeditor_OnComplete function, but I cant get it to work
Downloaded the latest CKEditor. No changes to the installation.
The html under loads the editor just fine, but the FCKeditor_OnComplete function is not called.
I have tried it in IE, Firefox and Chrome, no difference. What is wrong?
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <script src="ckeditor/ckeditor.js" type="text/javascript"></script> <script type="text/javascript"> function FCKeditor_OnComplete ( editorInstance ) { alert("Editor loaded"); } </script> </head> <body> <h1>Hello</h1> <textarea id="theHTMLEditor" name="theHTMLEditor" rows="25" cols="80" >Initial value</textarea> <script type="text/javascript"> CKEDITOR.replace("theHTMLEditor"); </script> </body> </html>
Re: FCKeditor_OnComplete does not work
Please, read the docs to learn how to use CKEditor.