I've created an array of FCKeditor's in Javascript with:
var oFCKeditor = new Array()
...
for (i=1; i < numAns; i++) {
if (document.getElementById('answer_text' + i) != null ) {
oFCKeditor[i] = new FCKeditor( document.getElementById('answer_text' + i) ) ;
oFCKeditor[i].BasePath = "/fckeditor/" ;
oFCKeditor[i].ReplaceTextarea() ;
}
}
Then when I want to get the data each editor contains, I tried to use:
for (i=1; i <= numAns; i++) {
alert(oFCKeditor[i].EditorDocument.body.innerHTML)
alert(oFCKeditor[i].GetHtml() )
alert(oFCKeditor[i].GetHTML() )
alert(oFCKeditor[i].Value )
alert(oFCKeditor[i].Text )
}
Probably some more variations on that too but nothing seems to work. Everything comes up "undefined". Can someone point me in the right direction? Thanks so much for any help.
Steve
var oFCKeditor = new Array()
...
for (i=1; i < numAns; i++) {
if (document.getElementById('answer_text' + i) != null ) {
oFCKeditor[i] = new FCKeditor( document.getElementById('answer_text' + i) ) ;
oFCKeditor[i].BasePath = "/fckeditor/" ;
oFCKeditor[i].ReplaceTextarea() ;
}
}
Then when I want to get the data each editor contains, I tried to use:
for (i=1; i <= numAns; i++) {
alert(oFCKeditor[i].EditorDocument.body.innerHTML)
alert(oFCKeditor[i].GetHtml() )
alert(oFCKeditor[i].GetHTML() )
alert(oFCKeditor[i].Value )
alert(oFCKeditor[i].Text )
}
Probably some more variations on that too but nothing seems to work. Everything comes up "undefined". Can someone point me in the right direction? Thanks so much for any help.
Steve