This commit is contained in:
@@ -404,7 +404,13 @@ export default {
|
||||
if (this.localVal.length == 0) {
|
||||
return "";
|
||||
}
|
||||
return DOMPurify.sanitize(marked(this.localVal, { breaks: true }));
|
||||
//replace attachment urls with tokenized local urls
|
||||
let src = this.localVal.replace(/\[ATTACH:(.*)\]/, function(match, p1) {
|
||||
return window.$gz.api.downloadUrl(p1);
|
||||
});
|
||||
|
||||
console.log(src);
|
||||
return DOMPurify.sanitize(marked(src, { breaks: true }));
|
||||
},
|
||||
onResize() {
|
||||
// this.editAreaHeight = window.innerHeight / 2;
|
||||
|
||||
Reference in New Issue
Block a user