fix images base url, uploaded by tinymce

This commit is contained in:
slawkens 2023-05-28 23:54:36 +02:00
parent 0187ba4938
commit 2841f17729

View File

@ -13,10 +13,10 @@
image_advtab: true, image_advtab: true,
images_upload_url: '{{ constant('BASE_URL') }}admin/tools/upload_image.php', images_upload_url: '{{ constant('BASE_URL') }}admin/tools/upload_image.php',
images_upload_credentials: true, images_upload_credentials: true,
// not really sure - do we need those 3 options below?
//relative_urls: false, relative_urls: true,
//remove_script_host: false, document_base_url: "{{ constant('BASE_URL') }}",
//document_base_url: "{{ constant('BASE_URL') }}"
setup: function (ed) { setup: function (ed) {
ed.on('NodeChange', function (e) { ed.on('NodeChange', function (e) {
if (ed.getContent() !== lastContent) { if (ed.getContent() !== lastContent) {