From 61fee2ae1a08bb6bdaf92a962c7e95f482101705 Mon Sep 17 00:00:00 2001
From: Vincent Bernat <bernat@luffy.cx>
Date: Fri, 7 Mar 2008 09:03:58 +0000
Subject: [PATCH] Disable spellchecker with tinymce

---
 debian/changelog                                  |  2 ++
 debian/patches/disable-tinymce-spellchecker.patch | 11 +++++++++++
 debian/patches/series                             |  1 +
 debian/roundcube-core.README.Debian               |  5 ++++-
 4 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/disable-tinymce-spellchecker.patch

diff --git a/debian/changelog b/debian/changelog
index ba2f86d..2447d6e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 roundcube (0.1-2) UNRELEASED; urgency=low
 
   * Ship bin/ directory as well. This fix HTML composition.
+  * Disable spellchecker for tinymce since it is not shipped with Debian
+    package of tinymce.
 
  -- Vincent Bernat <bernat@luffy.cx>  Fri, 07 Mar 2008 09:42:39 +0100
 
diff --git a/debian/patches/disable-tinymce-spellchecker.patch b/debian/patches/disable-tinymce-spellchecker.patch
new file mode 100644
index 0000000..ac5a158
--- /dev/null
+++ b/debian/patches/disable-tinymce-spellchecker.patch
@@ -0,0 +1,11 @@
+--- roundcube-0.1/program/js/editor.js~	2008-02-13 04:31:05.000000000 +0100
++++ roundcube-0.1/program/js/editor.js	2008-03-07 09:53:39.000000000 +0100
+@@ -21,7 +21,7 @@
+                  accessibility_focus : false,
+                  apply_source_formatting : true,
+                  theme : 'advanced',
+-                 plugins : 'emotions,media,nonbreaking,table,searchreplace,spellchecker,visualchars',
++                 plugins : 'emotions,media,nonbreaking,table,searchreplace,visualchars',
+                  theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,emotions,charmap,code,forecolor,backcolor,fontselect,fontsizeselect, separator,undo,redo,image,media',
+                  theme_advanced_buttons2 : '',
+                  theme_advanced_buttons3 : '',
diff --git a/debian/patches/series b/debian/patches/series
index b5789c7..c1aeafd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ correct_install_path.patch
 use_packaged_tinymce.patch
 use-db-backend.patch
 correct-magic-path.patch
+disable-tinymce-spellchecker.patch
diff --git a/debian/roundcube-core.README.Debian b/debian/roundcube-core.README.Debian
index ec5294b..20edc78 100644
--- a/debian/roundcube-core.README.Debian
+++ b/debian/roundcube-core.README.Debian
@@ -5,4 +5,7 @@ To use tinymce editor:
  - set $rcmail_config['enable_htmleditor'] to TRUE in
    /etc/roundcube/main.inc.php
 
- -- Vincent Bernat <bernat@luffy.cx>, Mon, 29 Oct 2007 21:39:09 +0100
+The spellchecker is disabled since it is not present in tinymce Debian
+package.
+
+ -- Vincent Bernat <bernat@luffy.cx>, Fri,  7 Mar 2008 09:54:52 +0100
-- 
2.39.5