spell checker


Example of HTMLArea 3.0 _editor_lang = "en"; _editor_url = "../"; html, body { font-family: Verdana,sans-serif; background-color: #fea; color: #000; } a:link, a:visited { color: #00f; } a:hover { color: #048; } a:active { color: #f00; } textarea { background-color: #fff; border: 1px solid 00f; } HTMLArea.loadPlugin("SpellChecker"); var editor = null; function initEditor() { // create an editor for the "ta" textbox editor = new HTMLArea("ta"); // register the SpellChecker plugin editor.registerPlugin(SpellChecker); editor.generate(); return false; } function insertHTML() { var html = prompt("Enter some HTML code here"); if (html) { editor.insertHTML(html); } } function highlight() { editor.surroundHTML('', ''); } HTMLArea 3.0 A replacement for TEXTAREA elements. © InteractiveTools.com, 2003-2004. Plugins: SpellChecker (sponsored by American Bible Society). The SpellChecker plugin This file deminstrates the SpellChecker plugin of HTMLArea. To inwoke the spell checkert you need to press the spell-check buton in the toolbar. The spell-checker uses a serverside script written in Perl. The Perl script calls aspell for any word in the text and reports wordz that aren't found in the dyctionari. The document that yu are reading now intentionaly containes some errorz, so that you have something to corect ;-) Credits for the SpellChecker plugin go to: Aspell -- spell checker The Perl programming language Text::Aspell -- Perl interface to Aspell American Bible Society -- for sponsoring the SpellChecker plugin for HTMLArea Your humble servant for implementing it ;-) submit function mySubmit() { // document.edit.save.value = "yes"; document.edit.onsubmit(); // workaround browser bugs. document.edit.submit(); };

Wyszukiwarka

Podobne podstrony:
spell checker
remove spell
Dragon Age Spell Grimoire
divine spell
Spell Sheet Exalted Deeds v3 5
checked
Spell Bound Rozdział 31
Spell Sheet Wizard v3 5
Arcana Evolved Spell Treasury The Lost
checked
Spell Sheet Assassin v3 5
spell
Fwd Fw PD Fwd Fw Fwd nie dla dzieci Virus checked ?zNazwy1
Midnight Secrets of Shadow Channeler Spell List
java util zip CheckedOutputStream
site checker
1345 Let s twist again Chubby Checker

więcej podobnych podstron