Bug 25485: TinyMCE broken in Debian package installs
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 12 May 2020 18:19:53 +0000 (14:19 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 20 May 2020 08:15:01 +0000 (09:15 +0100)
When installing the Debian package of Koha, we install the Debian tinymce package and symlink over our own tinymce libs that are in the Koha codebase. This version of tinymce does not have the same files and because of this, tinymce does not get loaded.

We should remove the use of the tinymce Debian package, and just use our own version of TinyMCE.

Test Plan:
1) Install Koha 19.11 from package
2) Browse to the news editor
4) Note the WYSIWYG editor is missing
5) Build a new Koha package with this patch applied, install it
6) Reload the news editor
7) Note the WYSIWYG editor is back!

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

debian/control.in
debian/rules

index 7ad20b1..9ab6b80 100644 (file)
@@ -30,7 +30,6 @@ Depends: ${misc:Depends}, ${koha:Depends},
  pwgen,
  starman,
  sudo,
- tinymce, 
  ttf-dejavu,
  unzip,
  xmlstarlet,
@@ -80,7 +79,6 @@ Depends: ${misc:Depends},
  pwgen,
  starman,
  sudo,
- tinymce,
  ttf-dejavu,
  unzip,
  xmlstarlet,
index 00830cc..72acb81 100755 (executable)
@@ -23,8 +23,6 @@ override_dh_auto_install:
        rm $(TMP)/var/log/koha/README
        rm -r \
                $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/lib/tiny_mce
-       ln -s /usr/share/tinymce/www \
-              $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/lib/tiny_mce
        install -d $(TMP)/etc/apache2/sites-available
        install -d $(TMP)/etc/apache2/sites-enabled
        install -d $(TMP)/etc/apache2/conf.d