fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed absolute image links
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
img
/
imgElement.js
diff --git
a/src/editor/plugins/core/img/imgElement.js
b/src/editor/plugins/core/img/imgElement.js
index
a83fb33
..
47b1467
100644
(file)
--- a/
src/editor/plugins/core/img/imgElement.js
+++ b/
src/editor/plugins/core/img/imgElement.js
@@
-114,7
+114,7
@@
_.extend(linkElement, {
getUrl: function(link) {
var pattern = /^[a-z]*:\/\//g;
- if(!pattern.test(link)) {
+ if(!pattern.test(link)
&& !/^\//.test(link)
) {
link = 'http://' + link;
}
return this.wlxmlNode.document.getUrlForLink(link);