Opened 6 years ago

Closed 4 years ago

#3910 closed New Feature (invalid)

Improved spellerPages

Reported by: harrytheb2 Owned by:
Priority: Normal Milestone:
Component: UI : Spell Checker Version: FCKeditor 2.6.4
Keywords: HasPatch Cc: gtansey_fck@…, pucku@…


I've made some modifications to the speller pages script that I thought might be useful and worth sharing.

Changed files are attached

  • By setting FCKConfig.SpellerPagesAddButton to true, the speller pages will include an 'add' (to dictionary) button. Without this setting it's entirely backwards compatible. With it enabled, any words that are added are posted back to the server through the spell checking script with a parameter set to enable it to detect that words need to be added to the dictionary, rather than to do a spell check.
  • The script has been modified and has placeholder functions for adding/retrieving words from the dictionary according to the server setup.
  • The control window has been improved to enable/disable buttons when appropriate.
  • The OK button is enabled on the outer spellchecking dialog when appropriate. This means you don't have to spell check an entire document and can finish half-way through to apply changes.
  • The word window has been fixed so as not to try to find mispelled words within HTML tags (see also bugs #2470 #2326 #2158 which also mention this but it still doesn't seem to have been fixed)

I'm not familiar with PHP or CFM but I'm sure it would be straightforward for someone who is to make similar changes in those scripts.

Attachments (2) (14.9 KB) - added by harrytheb2 6 years ago.
changed files from FCK2.6.4 for improved spellerPages
3910.patch (31.5 KB) - added by harrytheb2 6 years ago.
patch file for diffs from

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by harrytheb2

changed files from FCK2.6.4 for improved spellerPages

comment:1 Changed 6 years ago by mosipov

Please read this if you want to submit an improvement.

comment:2 Changed 6 years ago by harrytheb2

  • Cc gtansey_fck@… added
  • Keywords Review? added

I've attached a patch file after applying the changes to a checkout from

I'm not sure if you want a patch from a checkout from the trunk? But I'm suggesting that before this would be ready to go on the trunk that some equivalent changes to those made in editor/dialog/fck_spellerpages/spellerpages/server-scripts/ be also made to the .php and .cfm scripts. Perhaps this needs to go in a branch - not sure how you want to work with this, but I do think it would be a useful enhancement. Let me know if I can help further.

Changed 6 years ago by harrytheb2

comment:3 Changed 6 years ago by fredck

  • Component changed from General to UI : Spell Checker
  • Keywords HasPatch added; Review? removed

Thanks for the patch. The review instead must be asked for one of our core devs. I'm properly setting the ticket fields.

comment:4 Changed 6 years ago by

It is not related bug - doesn't relate to wsc or scayt plug-ins.

comment:5 Changed 6 years ago by pucku

  • Cc pucku@… added
  • Priority changed from Normal to High

harrytheb2, I applied your changes, but I didn't see the ADD button, so I edited the fck_spellerpages.html file by changing 'undefined' to 'true'. Here's the line:

oSpeller.bUseAddButton = (typeof oEditor.FCKConfig.SpellerPagesAddButton != 'true' && oEditor.FCKConfig.SpellerPagesAddButton) ? true : false;

That didn't work, so I starting digging and then I changed a line in the controls.html file to:

<input class="buttonDefault" type="button" id="btnAdd" fckLang="DlgSpellBtnAdd" value="Add" onClick="addWord();" disabled>

Now what happens is that when you click the spell check button, you see the ADD button and then it quickly disappears.

Am I editing the correct files?


comment:6 Changed 5 years ago by fredck

  • Priority changed from High to Normal
  • Version set to FCKeditor 2.6.4

comment:7 Changed 4 years ago by j.swiderski

  • Resolution set to invalid
  • Status changed from new to closed

FCKeditor was retired and is no longer supported. All active development was moved to its successor, CKEditor 3.x, that is a fully mature and far superior product. We recommend you upgrade as soon as possible.

Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy