fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas fix
[fnpeditor.git]
/
src
/
editor
/
modules
/
data
/
document.js
diff --git
a/src/editor/modules/data/document.js
b/src/editor/modules/data/document.js
index
0dbff14
..
db2b7a8
100644
(file)
--- a/
src/editor/modules/data/document.js
+++ b/
src/editor/modules/data/document.js
@@
-38,6
+38,13
@@
_.extend(Document.prototype, {
});
}.bind(this);
return wlxml.WLXMLDocument.prototype.transaction.call(this, body, params);
});
}.bind(this);
return wlxml.WLXMLDocument.prototype.transaction.call(this, body, params);
+ },
+ getUrlForLink: function(link) {
+ var cfg = this.options.editorConfig;
+ if(link.substr(0, 7) === 'file://' && cfg && cfg.documentAttachmentUrl) {
+ link = cfg.documentAttachmentUrl(link.substr(7));
+ }
+ return link;
}
});
}
});