From: Jan Szejko Date: Fri, 12 Jan 2018 15:26:30 +0000 (+0100) Subject: fix for red links X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c34c91ffe1f49c9b4d7e02fd4f04c1976df31261?ds=sidebyside fix for red links --- diff --git a/src/editor/plugins/core/links/linkElement.js b/src/editor/plugins/core/links/linkElement.js index 7439804..4725f73 100644 --- a/src/editor/plugins/core/links/linkElement.js +++ b/src/editor/plugins/core/links/linkElement.js @@ -23,7 +23,7 @@ _.extend(linkElement, { badLink; if (linkText.substr(0,7) === 'file://') { - var filename = linkText.substr(7); + var filename = decodeURIComponent(linkText.substr(7)); // ugly badLink = (window.materials.indexOf(filename) < 0); }