I've got such output code:
<script type="text/javascript"> var oFCKeditor = new FCKeditor('customerInfo'); oFCKeditor.BasePath = "javascript/fckeditor/"; oFCKeditor.Create(); oFCKeditor.setHTML("dfafdafasd<br />"); </script>
The problem is that i get the editor itself, but i can't insert data into the edit area. I've tried setHTML, setData, insertHTML....nothing works....
Re: Can't insert (set) data into a created FCKeditor object
The editor widget is not guaranteed to exist by the time the Create() call completes and returns. You can either set oFCKeditor.Value BEFORE issuing the oFCKeditor.Create() call, or you must use the FCKeditor_OnComplete(instance) function to schedule the SetHTML() call when the editor is fully loaded.