Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9098053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:16:13+00:00 2026-06-17T00:16:13+00:00

I am trying to integrate javascriptspellchecker into a web page with ckEditor (note I

  • 0

I am trying to integrate javascriptspellchecker into a web page with ckEditor (note I am using ckeditor version 3.6). I would like to replace the default spellcheck and SCAYT (spell check as you type) plugins with new custom plugins that use javascriptspellcheck.

I have created a plugin following the example from the javascriptspellchecker website but it doesn’t work properly. The javascriptspellchecker taked the id of the textarea and runs a spellcheck on it’s value (or attaches event handlers to spellcheck after input when chosing SCAYT). The problem is, when I alter the text in a ckEditor instance, the hidden textbox doesn’t seem to be updated in the background. This means the plugin I have written only checks the original value of the textarea, and the SCAYT doesn’t work.

My plugin so far:-

(function () {
    //Section 1 : Code to execute when the toolbar button is pressed
    var a = {
        exec: function (editor) {
            $Spelling.SpellCheckInWindow($(editor.element).attr('id'))
        }
    },

    //Section 2 : Create the button and add the functionality to it
    b = 'javascriptspellcheck';
    CKEDITOR.plugins.add(b, {
        init: function (editor) {
            editor.addCommand(b, a);
            editor.ui.addButton("JavaScriptSpellCheck", {
                label: 'Check Spelling',
                icon: this.path + "images/spell.png",
                command: b
            });
        }
    });
})();

Does anyone know if it is possible to make a working plugin? Is there a way to force the editor to update the hidden textarea, or is there another DOM element I can pass to the spellchecker?

Update:

In case it is useful, the SCAYT version of my plugin uses the following execute function

exec: function (editor) {
    $Spelling.SpellCheckAsYouType($(editor.element).attr('id'))
}

Update 2:

I found a soltion for the normal spell check, I can call editor.UpdateElement() before running the spell check and it works! I’m not sure why though, when I inspect the original textarea with firebug the value doesn’t seem to have changed.

New Spellcheck plugin

(function () {
    //Section 1 : Code to execute when the toolbar button is pressed
    var a = {
        exec: function (editor) {
            editor.updateElement();
            $Spelling.SpellCheckInWindow($(editor.element).attr('id'));
        }
    },

    //Section 2 : Create the button and add the functionality to it
    b = 'javascriptspellcheck';
    CKEDITOR.plugins.add(b, {
        init: function (editor) {
            editor.addCommand(b, a);
            editor.ui.addButton("JavaScriptSpellCheck", {
                label: 'Check Spelling',
                icon: this.path + "images/spell.png",
                command: b
            });
        }
    });
})();

I still can’t get SCAYT to work though. I found a ckeditor plugin to catch change events, and tried to call the updateElement() funciton again on every change. This doesn’t work though, can anyone help?

My SCAYT plugin using the ckeditor onchange plugin:

exec: function (editor) {
    editor.on('change', function (e) { this.updateElement(); });
    $Spelling.SpellCheckAsYouType($(editor.element).attr('id'));
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:16:14+00:00Added an answer on June 17, 2026 at 12:16 am

    After contacting support for JavaScriptSpellcheck, they replied saying “SCAYT will not work with any editor as it risks injecting junk HTML into your forms“. So the SCAYT plugin for CK Editor is not possible. As in my question update, the code for a working Spell Check in Window plugin for CK Editor (v3.6) is below:

    (function () {
        //Section 1 : Code to execute when the toolbar button is pressed
        var a = {
            exec: function (editor) {
                editor.updateElement();
                $Spelling.SpellCheckInWindow($(editor.element).attr('id'));
            }
        },
    
        //Section 2 : Create the button and add the functionality to it
        b = 'javascriptspellcheck';
        CKEDITOR.plugins.add(b, {
            init: function (editor) {
                editor.addCommand(b, a);
                editor.ui.addButton("JavaScriptSpellCheck", {
                    label: 'Check Spelling',
                    icon: this.path + "images/spell.png",
                    command: b
                });
            }
        });
    })();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to integrate/replace my web edit queue into Trello. I made an
I'm trying to integrate passport into my nodejs server using connect, but can't seem
I'm trying to integrate bean validation using hibernate validator to my web application :
I'm trying to integrate the Moneris Hosted Pay Page into my .net 1.1 app
I am trying to integrate git into my workflow. I'm starting it by using
I am trying to integrate twitter into an iOS app using Ben Gottlieb's Twitter-OAuth-iPhone
Im trying to integrate my PHPUnit tests into Hudson using the xUnit plugin. After
I am trying to integrate facebook with in my asp.net mvc web application using
I'm trying to integrate Facebook sharing into a webpage using this code edited from
Trying to integrate a Facebook page stream into an element for a website?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.