From 491a6e2901938f49c1e14907f9da615286c81719 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 16 Sep 2008 09:58:17 -0400
Subject: [PATCH] - Allow and use spellcheck attribute for input/textarea fields (#1485060)

---
 program/steps/settings/edit_identity.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc
index 1e3fa34..dbb3ece 100644
--- a/program/steps/settings/edit_identity.inc
+++ b/program/steps/settings/edit_identity.inc
@@ -58,7 +58,8 @@
                                     "theme_advanced_toolbar_align : 'left'," .
                                     "theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr'," .
                                     "theme_advanced_buttons2 : 'link,unlink,code,forecolor,fontselect,fontsizeselect'," .
-                                    "theme_advanced_buttons3 : '' });");
+                                    "theme_advanced_buttons3 : '',".
+				    "gecko_spellcheck : true });");
 
   if (!$IDENTITY_RECORD && $RCMAIL->action != 'add-identity')
     return rcube_label('notfound');
@@ -113,6 +114,7 @@
       {
       $attrib['size'] = $colprop['size'];
       $attrib['rows'] = $colprop['rows'];
+      $attrib['spellcheck'] = true;
       if ($IDENTITY_RECORD['html_signature'])
         {
         $attrib['class'] = "mce_editor";

--
Gitblit v1.9.1