From 2841f177292bfbf390357aec732f6a84b751233c Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 28 May 2023 23:54:36 +0200 Subject: [PATCH] fix images base url, uploaded by tinymce --- system/templates/tinymce.html.twig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/templates/tinymce.html.twig b/system/templates/tinymce.html.twig index 880de4f0..adc1e3c9 100644 --- a/system/templates/tinymce.html.twig +++ b/system/templates/tinymce.html.twig @@ -13,10 +13,10 @@ image_advtab: true, images_upload_url: '{{ constant('BASE_URL') }}admin/tools/upload_image.php', images_upload_credentials: true, - // not really sure - do we need those 3 options below? - //relative_urls: false, - //remove_script_host: false, - //document_base_url: "{{ constant('BASE_URL') }}" + + relative_urls: true, + document_base_url: "{{ constant('BASE_URL') }}", + setup: function (ed) { ed.on('NodeChange', function (e) { if (ed.getContent() !== lastContent) {