Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The spell checker is not working with a contentEditable div. #60

Open
BlueRyno opened this issue Nov 4, 2013 · 1 comment
Open

The spell checker is not working with a contentEditable div. #60

BlueRyno opened this issue Nov 4, 2013 · 1 comment

Comments

@BlueRyno
Copy link

BlueRyno commented Nov 4, 2013

"just use a

with contentEditable property (which is pretty well supported: http://caniuse.com/contenteditable)." - badsyntax

I've tried this method to no avail. The text that loads initially in the div can be read just fine, but even with an event that fires on blur, some words typed after page load will never be checked and some will be fine.

function typer() {
  $('#spellCheck').off('blur', speller).on('blur', speller);
}

// Bind spellchecker handler functions
spellchecker.on('check.success', function() {
  alert('There are no incorrectly spelled words!');
});

function speller()
{
  // Check the spelling when user clicks on button
  $("#check-spelling-button").off('click').on('click', function(e){
    spellchecker.check();
  });
}
@vittyvardhan
Copy link

vittyvardhan commented Apr 7, 2017

I am also using jquery spellchecker it is not working mostly on editable div. Let me know if you find any break through

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants