SCAYT - Spell Check as You Type – What and How

FCKEditor (2.6.5 or CKEditor 3.x) is the only editor to bring you a "zero installation" spell check as you type solution. Nothing in your servers is needed for it. It's based on the quality spell checking services provided by SpellChecker.net.

What's SCAYT?

Spell Check As You Type (SCAYT) product allows user to see and correct misspellings while typing. Misspelled words are underlined. User just need to Right-Click marked word and select a suggestion to replace it with.

New SCAYT 2.0 has the following improvements:

  • prompt loading
  • quick and smart text processing
  • cross browsers support
  • no server-side installation

 

As shown in above screenshot, when you type the content of Blogs entries in the Liferay portal, FCKEditor will do spell-check; and you just need to Right-Click marked word and select a suggestion to replace it with.

 SCAYT supports multiple languages: English (100,000 words), British English (100,000 words), Canadian English (100,000 words), Canadian French (130,000 words), French (137,000 words), German (295,000 words), Italian (283,000 words), Greek (574,000 words), Spanish (288,000 words), Brazilian Portuguese (119,000 words), Danish (102,000 words), Dutch (178,000 words), Norwegian Bokmal (95,000 words), Portuguese (135,000 words), Swedish (110,000 words), Finnish (251,000 words).

 

As shown in above screenshot, you can select languages, disable or enable SCAYT in FCKEditor, etc.

How to integrate SCAYT in Liferay Portal?

First of all, let's upgrade the WYSIWYG Text Editor - FCKEditor - to the latest version. By default, Liferay portal has bundled FCKeditor with a specific version - it may not be the latest version. Let's upgrade the FCKeditor to the latest version as follows.

  • Download the latest version of FCKeditor from http://ckeditor.com (FCKEditor 2.6.5 or above).
  • Rename the folder fckeditor under the folder $PORTAL_ROOT_HOME/html/js/editor to fckeditor.backup.
  • Unzip the ZIP file to the folder $PORTAL_ROOT_HOME/html/js/editor.

Where $PORTAL_ROOT_HOME represents the root folder of Liferay portal.

Then, let's add a customized configuration to the JSP file fckconfig.jsp. To do so, you can simply copy the JSP file fckconfig.jsp from the folder $PORTAL_ROOT_HOME/html/js/editor/fckeditor.backup to the folder $PORTAL_ROOT_HOME/html/js/editor/fckeditor.

Afterwards, we need to generate the portal browser folder $PORTAL_ROOT_HOME/html/js/editor/fckeditor/editor/filemanager/browser/liferay in the following manner.

  • Locate the folder $PORTAL_ROOT_HOME/html/js/editor/fckeditor.backup/editor/filemanager/browser
  • Copy the folder liferay (including all subfolders and files) from $PORTAL_ROOT_HOME/html/js/editor/fckeditor.backup/editor/filemanager/browser to $PORTAL_ROOT_HOME/html/js/editor/fckeditor/editor/filemanager/browser.

Finally, add following line after the line FCKConfig.Plugins.Add('liferaypagebreak', null, sOtherPluginPath ) ; in the configuration file $PORTAL_ROOT_HOME/html/js/editor/fckeditor/fckconfig.jsp

FCKConfig.SpellChecker = 'SCAYT' ;

As shown in above code, it sets the FCKConfig.SpellChecker as a value SCAYT (Spell Check as You Type).

That’s it. From now on, you can enjoy the latest version of FCKEditor with SCAYT.

References

Of course, you can customize FCKEditor as you expected. For more details, you may refer to the chapter 6 Customizing the WYSIWYG Editor of the book: Liferay portal 5.2 Systems Development.

Blogs
other thing , if you want to use hosted version of the SCAYT , where you wont be seeing the upgrade message from them , you can add this line to fckconfig.jsp

FCKConfig.ScaytCustomUrl = 'http://urhost/spellcheck/lf/scayt/scayt.js';
Hi Jonas,

I Followed your instructions and spell check is still disabled for me.

I'm running the Liferay 5.2.3 / Tomcat 5.5.27 combo and upgraded fckeditor to 2.6.5

The editor still works so I assume the fckeditor upgrade worked.
I tried turning up the log levels on com.liferay.portal.editor & com.liferay.portal.editor.fckeditor.ConnectorAction - but that didn't show anything useful.

I also tried using Firefox 3.5 built in spell checker using the line:
FCKConfig.FirefoxSpellChecker = true ;

This lets me see what is spelt incorrectly, but I can't see suggestions (by right clicking - it's showing fckeditor's context menus).

I have been able to get IE8's spell checker working, but I'd prefer to use a server side checker if possible.

Any suggestions??
Hi Matt, Thanks. Do you get it fixed?

If in need, you can follow the chapter 6 Customizing the WYSIWYG Editor of the book: Liferay portal 5.2 System Development; and the debug it (JSP, JavaScript, and HTML).

Hope that this helps.
Jonas i am following all the steps but it is not working.
Do you have any other idea?
Hi Jignesh, thanks. Do you get any error? You may debug it according to the chapter 6 Customizing the WYSIWYG Editor of the book: Liferay portal 5.2 System Development.

By the way, integration with CKEditor (3.x) in Liferay portal 6.x will be ready shortly.
No Jonas,

Actually it is working in IE but it is not working in FF and it is not enabling in FF-3.5 .

I also change the FF setting from browser configuration.

And one more thing is i am getting the ad when enabled scyte.

So is there any way to remove this ad?
Jonas now it is started to work in IE and FF both.
Actually code was not reflacted and it was coming from caching.And for ads i think we will have to purchase SCAYT so this will also be removed.

Thanks
HI Jignesh,

I am using the same code but it is not working in IE 8.DO i need to install something for it to work in IE 8 .It works in FF

Regards
Neha
HI Neha, Thanks. It should work well in IE 8. You do not need to install any thing.

Do you get any errors in IE8?