Hey,
I have encorperated this editor into my new spell checking form. My problem is that when i enter some values into the fck, then click my spell checker, it will pick up the error and provide changes. However, when i try to replace a text and place it back into the fckeditor the fckeditor will not update with the new word.
Currently in my spellchecker.js i have a fuction that does
function saveChangedText() {
for (var i = 0; i < formResults.fieldResults.length; ++i) {
var fr = formResults.fieldResults[i];
if (fr.modified) {
var theForm = window.opener.document.forms[fr.fieldFormNum];
theForm[fr.fieldName].value = fr.text;
if (fr.fieldName = "FCKeditorTxt") {
theForm[fr.fieldName].value = fr.text;
}
fr.modified = false;
}
}
where fieldname is the fckeditor. But the fckeditor will not take and replace the text inside it.
Is there some work around this or are fckeditors not able to be edited via another javascript. I am using a javascript that was given to me by my spellchecker company to spellcheck textareas.
Thank You
I have encorperated this editor into my new spell checking form. My problem is that when i enter some values into the fck, then click my spell checker, it will pick up the error and provide changes. However, when i try to replace a text and place it back into the fckeditor the fckeditor will not update with the new word.
Currently in my spellchecker.js i have a fuction that does
function saveChangedText() {
for (var i = 0; i < formResults.fieldResults.length; ++i) {
var fr = formResults.fieldResults[i];
if (fr.modified) {
var theForm = window.opener.document.forms[fr.fieldFormNum];
theForm[fr.fieldName].value = fr.text;
if (fr.fieldName = "FCKeditorTxt") {
theForm[fr.fieldName].value = fr.text;
}
fr.modified = false;
}
}
where fieldname is the fckeditor. But the fckeditor will not take and replace the text inside it.
Is there some work around this or are fckeditors not able to be edited via another javascript. I am using a javascript that was given to me by my spellchecker company to spellcheck textareas.
Thank You