summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-06-07 21:44:56 +0200
committerandi <andi@splitbrain.org>2005-06-07 21:44:56 +0200
commitdc57ef04af4d12bb589c98e7457a22c44a091815 (patch)
tree8364d81819ec7745ce4e05c149256c40704f19da /lib/tpl
parent50d915fed681509e84e625a5bfd4e3602dfe98d2 (diff)
downloadrpg-dc57ef04af4d12bb589c98e7457a22c44a091815.tar.gz
rpg-dc57ef04af4d12bb589c98e7457a22c44a091815.tar.bz2
AJAX spellchecker #29
This is nearly a complete rewrite of the gmail like AJAX spellchecker from http://www.broken-notebook.com/spell_checker/index.php Here are the differences and features * seemless integrated into DokuWiki * no need for the pspell extension * needs GNU aspell installed (not sure about the version I guess 0.60+ for UTF8) * needs PHP 4.3.0+ * uses SACK for AJAX * gets errors and suggestions in one transfer So far only tested in Firefox. It should work in IE, Safari and Opera 8, too. Please test and report back. darcs-hash:20050607194456-9977f-f699144d1fd28359742b2ce0f28c839a1f4cefbb.gz
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/default/design.css44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index e492dfec3..9eff3d0d5 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -640,3 +640,47 @@ div.ajax_qsearch {
opacity: 0.9;
display:none;
}
+
+/* ---------- Spellchecking ------------- */
+
+a.spell_error {
+ color: #ff0000;
+ text-decoration: underline;
+}
+
+div#spell_suggest {
+ position: absolute;
+ left: 0;
+ top: 0;
+ display: none;
+ background-color: #fff;
+ padding: 2px;
+ border: 1px solid #000;
+ font-size:80%;
+}
+
+div#spell_result {
+ display:none;
+ font-family:monospace;
+ border: 1px solid #8cacbb;
+ color: Black;
+ font-size:14px;
+ padding: 3px;
+ background-color: #f7f9fa;
+ overflow: auto;
+
+ white-space: pre-wrap; /* css-3 */
+ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
+ white-space: -pre-wrap; /* Opera 4-6 */
+ white-space: -o-pre-wrap; /* Opera 7 */
+ word-wrap: break-word; /* Internet Explorer 5.5+ */
+}
+
+span.spell_noerr {
+ color: #009933;
+}
+
+span.spell_wait {
+ color: #0066cc;
+}
+