Solved

trying to configure fckeditor to work with foundeo jsp spell checker

Posted on 2008-10-23
4
327 Views
Last Modified: 2012-05-05
both the fck editor and foundeo jsp spell checker are correctly installed and work great. i am trying to get the spell check to work with the editor. and have followed the instructions fromt his page: http://www.mollerus.net/tom/blog/2008/01/configuring_foundeo_spell_checker_to_work_with_col.html

the instructions work great and the spell checker check all the spelling int he fck editor. but the results/ changes do not translate over to the ediotr once spell check is complete.
i tried adding the last line to the done() function in the spell.jsp file (step 4) but this causes the spell checker to only check the first statement and not check the whole text in the ediotr also the changes do not translate over. without the last line the spell checker checks through the whole ediotr but the changes do not translate over to the editor once the spelling check is complete. Please help.
0
Comment
Question by:sadaf_syed
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:bluV11t
Comment Utility
Do you have a spell.cfm file? What are you integrating fckeditor into, coldfusion or asp or? I think you might be adding the step 4 line the wrong place...
0
 

Author Comment

by:sadaf_syed
Comment Utility
no i am integrating the fck editor with the foundeo jsp spell checker as i have mentioned in my question. The steps are the same, as its mainly java script being added to a form. however, i have the spell.jsp file and not a spell.cfm file. so i have added the statement to the end of the done() function in the spell.jsp. Now i have managed to get the spell checker to check through the whole file even after adding the statement but the changes still do not translate over. there was a need for braces so i have added:
if(parent.opener.spellcheckerFinish) {
                parent.opener.spellcheckerFinish();
                                        }
to the end of the done function and spell checker checks through the entire context of the editor but the changes do not translate over.
0
 
LVL 7

Accepted Solution

by:
bluV11t earned 500 total points
Comment Utility
Could you put an alert into the function spellcheckerFinish wich is found on the page where you have the form with the editor? This to see if this function gets called. Also, do you get any javascript errors?

function spellcheckerFinish() {
      // Put the spell-checked text back into the FCKEditor
      alert('back_to_editor');
      FCKeditorAPI.GetInstance(document.compose.message.id).SetHTML(document.compose.spellcheckText.value);
      return false;
}
0
 

Author Comment

by:sadaf_syed
Comment Utility
the error was int his statement. i changed it to:

function spellcheckerFinish() {
      // Put the spell-checked text back into the FCKEditor
      FCKeditorAPI.GetInstance('emailbody').SetHTML(document.dataentry.emailbody.value);
      return false;
}

thanks.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now