X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/df341bdd09208d2b0f84060454cc0000df19deba..7c12614b8a982578f1e98a29d35ba300eb229681:/src/redakcja/static/js/wiki/wikiapi.js diff --git a/src/redakcja/static/js/wiki/wikiapi.js b/src/redakcja/static/js/wiki/wikiapi.js index 28450ce0..2f1bceb5 100644 --- a/src/redakcja/static/js/wiki/wikiapi.js +++ b/src/redakcja/static/js/wiki/wikiapi.js @@ -440,6 +440,10 @@ return text.length; } + /* Temporary workaround for relative images. */ + WikiDocument.prototype.getBase = function() { + return '/media/dynamic/images/' + this.galleryLink + '/'; + }; $.wikiapi.WikiDocument = WikiDocument; })(jQuery);