function add() {
var parent = document.getElementById('parent');
/* creating new article div */
var article = document.createElement('DIV');
var inntertext = "";
/* setting new div id and name attributes */
article.id = 'article' + elCount;
article.name = 'article' + elCount;
// FCKeditor
$oFCKeditor = new FCKeditor(article' + elCount + ');
$oFCKeditor->BasePath = '<?php echo SITE_URL ?>/includes/classes/fckeditor/';
$oFCKeditor->Config['ToolbarStartExpanded'] = false ;
$oFCKeditor->Create();
/* preparing new article form */
inntertext += '<div class="outer">';
inntertext += '<textarea name="text' + elCount + '"></textarea>';
inntertext += '</div>';
/* setting innerHTML of new div */
article.innerHTML = inntertext;
/* appending the new div to parent */
parent.appendChild(article);
elCount++;
}http://wiki.fckeditor.net/Developer%27s ... Javascript

Re: Dynamic js function not working
You must use just the javascript methods, the third one should be just what you need.
Re: Dynamic js function not working
Thank you.
That's what I thought, and had tried it in a bunch of variations prior to posting, but I still couldn't get it to work.