fix for red links
authorJan Szejko <janek37@gmail.com>
Fri, 12 Jan 2018 15:26:30 +0000 (16:26 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 12 Jan 2018 15:26:30 +0000 (16:26 +0100)
src/editor/plugins/core/links/linkElement.js

index 7439804..4725f73 100644 (file)
@@ -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);
         }