For implementing Spell check concept i applied WYSIWYG editor to textare.I got the output in Mozilla but not in InternetExplorer.Can you say where the problem might be.

Dani AI

Generated

Short answer: this is expected — many WYSIWYG editors rely on the browser's native spellchecker, and Firefox has long supported inline spellchecking for editable areas while older Internet Explorer versions did not. was likely right that the editor is depending on Mozilla/Firefox behavior.

Practical troubleshooting:

  • Inspect the editable area with devtools. If the editor uses an iframe with designMode the browser may not run its native checker there; if it uses an inline contentEditable element the native checker is more likely to work.
  • If the editable area is in the same document, ensure the editable element (or the iframe body) has spellcheck="true"; some editors offer a config/option to “use native browser spellcheck” — check the editor docs.
  • Check which IE/version is in use: older IE (IE9 and earlier) generally lack a built‑in inline spellchecker. More recent IE/Edge and modern Chromium builds have native spellcheck, but behavior can depend on OS settings and editor mode.

Cross‑browser solutions and tradeoffs:

  • Enable the editor’s “use browser spellcheck” or switch to inline contentEditable if the editor supports it (simplest if the target browsers support native checking).
  • Implement a server/AJAX spellcheck (what suggested). Workflow: send plain text (strip tags) to a PHP endpoint, run a spell engine (Aspell/Hunspell or PHP’s Pspell extension), return misspellings and suggestions, then present replacements/highlights in the editor. This is reliable across browsers but requires handling tokenization, preserving HTML formatting, performance and privacy considerations.

Example minimal PHP check using Pspell (conceptual):

$ps = pspell_new("en");
$words = preg_split('/\s+/', strip_tags($html));
foreach ($words as $w) {
  $w = trim($w, " \t\n\r.,;:!?\"'()");
  if ($w !== "" && !pspell_check($ps, $w)) {
    $miss[$w] = pspell_suggest($ps, $w);
  }
}
echo json_encode($miss);

Final notes: check the chosen WYSIWYG’s docs for a “browser spellcheck” option first — it’s the least invasive fix. If server checking is used, plan how to map suggestions back into the editor DOM without breaking markup.

Recommended Answers

All 7 Replies

Member Avatar for Member #120589

What are you using? Which spellchecker. What 'output'? Is this to do with php specifically or is it a general web browser question?

I'm using WYSIWYG editor inbuilt spell checker and i'm Uisng this in php and regarding output in IE its not checking the words.

Member Avatar for Member #120589

Are you depending on javascript at all? I'd guess that you're using js that IE won't like. Short of actually seeing the code that runs when your spellchecker button/link is clicked (and any subsequent code), it's difficult to say. It may be that the script is making use of Mozilla's built-in spellchecker.

Don't we have in built spell checker in Internet explorer.If no how to solve this problem.

Member Avatar for Member #120589

I don't think IE has a built-in SC. To be honest I almost never use it, only to test CSS and JS as a rule. The Googlebar allows spellchecking in a number of languages, but I have no idea how you'd check for this and then implement it. Problem is, your users wouldn't be able to make use of it if they hadn't installed google toolbar (obviously).

Perhaps instead of a live spell checker, instead have a spell check button which then uses ajax to check+correct the spelling. That would be the easiest way of doing it.

Member Avatar for Member #120589

@cwarn - I agree a custom script would be better than relying on browser plug-ins.

I came across a good spellcheker a while ago here:

http://spellerpages.sourceforge.net/

I implemented it into a project as an afterthought, it seemed to do the job, but I haven't tested it thoroughly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.