fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7411943
)
fix for red links
author
Jan Szejko
<janek37@gmail.com>
Fri, 12 Jan 2018 15:26:30 +0000
(16:26 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 12 Jan 2018 15:26:30 +0000
(16:26 +0100)
src/editor/plugins/core/links/linkElement.js
patch
|
blob
|
history
diff --git
a/src/editor/plugins/core/links/linkElement.js
b/src/editor/plugins/core/links/linkElement.js
index
7439804
..
4725f73
100644
(file)
--- 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);
}