From 79797502ac5f04c01af1e7665d92eb368cc5546d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 15 May 2020 20:40:44 +0200 Subject: [PATCH] Bug 25519: [18.11] Fix missing dialog.css in TinyMCE editor When using the TinyMCE editor in 18.11 all functionalities used from popups (anchors, images, links) are broken because dialog.css is missing. To test: First verify the problem on the following pages: 1) Tools > News - Add or edit a news entry 2) Administration > Libraries - Add or edit OPAC info for one of the libraries 3) Administration > System preferences - Activate UseWYSIWYGinSystemPreferences - Try the editor on any of the HTML preferences like OpacMainUserBlock Apply the patch and repeat. The styling should be back, which especially makes adding links usable again. --- koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 1 + 3 files changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc index 066502b2db..c16ec7be87 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/wysiwyg-systempreferences.inc @@ -13,6 +13,7 @@ function wysiwyg_change (ed){ tinyMCE.baseURL = "[% interface | html %]/lib/tiny_mce"; tinyMCE.init({ + popup_css_add : "[% interface %]/lib/tiny_mce/themes/advanced/skins/default/dialog.css", setup : function(ed) { ed.onInit.add(function(editor){ [%- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index d55512ef27..c8f211b375 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -286,6 +286,7 @@ }); tinyMCE.baseURL = "[% interface | html %]/lib/tiny_mce"; tinyMCE.init({ + popup_css_add : "[% interface %]/lib/tiny_mce/themes/advanced/skins/default/dialog.css", mode : "textareas", theme : "advanced", content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css", diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index d73f2c7c0a..fce35bc8ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -271,6 +271,7 @@ Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]