aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2024-09-08 18:09:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2024-09-08 18:09:28 +0200
commit944e9ba7254387adb60f253b0d8796f2276096b1 (patch)
tree982cc1234b1c4060bd58d72ce72a59d0f341d1cb /lib/scripts/editor.js
parent6de67ec6f9efe768b902ace7eb42cda8bff62725 (diff)
downloaddokuwiki-944e9ba7254387adb60f253b0d8796f2276096b1.tar.gz
dokuwiki-944e9ba7254387adb60f253b0d8796f2276096b1.zip
use a dispatcher to access static image files
This makes it possible to replace default images in an update safe way. It also addresses the issue raised in dokuwiki/docker#16 A .htaccess rewrite catches any direct accesses that might come in from plugins.
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index 0df556172..f0a767223 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -58,7 +58,7 @@ var dw_editor = {
['wrap', function(){dw_editor.toggleWrap(editor);}]
], function (_, img) {
jQuery(document.createElement('img'))
- .attr('src', DOKU_BASE+'lib/images/' + img[0] + '.gif')
+ .attr('src', DOKU_BASE+'lib/exe/image.php/' + img[0] + '.gif')
.attr('alt', '')
.on('click', img[1])
.appendTo($ctl);