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');