Posts Tagged ‘Spellchecker’

Visual.SpellCheck And Sociable Fix

Posted on October 2006 at about 4:52 AM by hwa

For those who use the WordPress plugin Visual.SpellCheck and Sociable, i don’t know whether this happen to you or not, but for me if i enable both plugin i will get this strange problem where the “Check Spelling” button from the plugin Visual.SpellCheck in my editor doesn’t show up.

So i went dig up the code and found out that it’s actually the JavaScript from Sociable crashed with the one from Visual.SpellCheck. The JavaScript is from line 355 until 370 in sociable.php, the function of this script is to enable drag and drop in Sociable option page, which i think is very cool.

Anyway i noticed that this block of JavaScript will load every time even thought you are not in the option page, which i think is not necessary. So i moved the JavaScript from line number 355 until 370 which should looks like this:-

  1. <script language="JavaScript" type="text/javascript"><!--
  2. var dragsort = ToolMan.dragsort();
  3. var junkdrawer = ToolMan.junkdrawer();
  4. window.onload = function() {
  5.     dragsort.makeListSortable(
  6.         document.getElementById("sociable_site_list")
  7.     );
  8. }
  10. /* make checkbox action prettier */
  11. function toggle_checkbox(id) {
  12.   var checkbox = document.getElementById(id);
  13.     if (checkbox.checked)
  14.         checkbox.parentNode.className = 'active';
  15.     else
  16.         checkbox.parentNode.className = 'inactive';
  17. }
  18. --></script>

And paste the above JavaScript block to line number 504, just before the drag and drop in Sociable option page, or anywhere before the following line:-

  1. <ul id="sociable_site_list"></ul>

And this should fix the “Check Spelling” button won’t load problem. The idea is to only load the JavaScript block in the Sociable option page.

WordPress Spell Check Plugin

Posted on September 2006 at about 5:02 AM by hwa

I have to admit that my English is bad, not only grammar, but the spelling as well, so i do a lot of spelling mistakes. Although there’s a spell check implemented together with the WYSIWYG in WordPress 2.0, but the problems is i don’t use WYSIWYG. So i went out and start searching for WordPress spell check plugin.

There are several WordPress spell check plugin i found on the net, but only one that i really like, introducing Visual.SpellCheck by Matthew Delmarter, an AJAX spell checker that function almost like the one in Gmail, but Pspell must be installed on your server in order to use this plugin.

Visual.SpellCheck screenshot.

There’s a live demo in the plugin website, go ahead and try it out, i would say so far this is the best spell check plugin for WordPress.

However it seem like there’s a little problem with this plugin if you use it together with Sociable, a social bookmarking plugin by Peter Harkins, the button “Check Spelling” just don’t want to show up in editor if Sociable is enabled. But worry not, i have a simple fix that will fix this problem, will compile it and post later because now is almost 5am and i’m blur. 😯

You can download Visual.SpellCheck at here.

Edit: You can find the Visual.SpellCheck And Sociable fix at here.