From e7c3a2f4bf0f0a3ba80f01d64dcb2c3ee3c1a36d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Apr 2026 02:24:19 +0200 Subject: [PATCH] Introduce FCKEDITOR_ENABLE_IMAGE_UPLOAD. Upload on ckeditor became useless (copy/paste is better and can join files on emails) --- htdocs/core/class/html.formmail.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 631ad64489a..bf52138fbe6 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -1146,7 +1146,10 @@ class FormMail extends Form } } - $doleditor = new DolEditor('message', $defaultmessage, '', 280, $this->ckeditortoolbar, 'In', true, true, $this->withfckeditor, 8, '95%'); + $uselocalbrowser = getDolGlobalBool('FCKEDITOR_ENABLE_IMAGE_UPLOAD'); + // $uselocalbrowser = true; + + $doleditor = new DolEditor('message', $defaultmessage, '', 280, $this->ckeditortoolbar, 'In', true, $uselocalbrowser, $this->withfckeditor, 8, '95%'); $out .= $doleditor->Create(1); } $out .= "\n";