An existing AJAX script which calls database content into a file is then passed via JS to a textarea, which was the old way. I replaced the textarea with FCK but am getting an FCKEditorAPI is not defined error. Here are the scripts used.
I have the following line of code at the bottom of the page, after everything else:
var FCK = FCKeditorAPI.GetInstance('body');
Re: Problem setting editor content via AJAX
The FCKeditor docs recommend using FCKeditor_OnComplete, which only triggers when the editor is fully loaded. See the JavaScript API docs...