NOW MANAGED ON CODEBERG
Wrap images inserted with markdown editor with anchor tag to original file ref #1062
Thomas Jensen90929baa523c
diff --git a/resources/assets/js/components/markdown-editor.js b/resources/assets/js/components/markdown-editor.jsindex a555376e8..88b61f0be 100644--- a/resources/assets/js/components/markdown-editor.js+++ b/resources/assets/js/components/markdown-editor.js@@ -304,7 +304,7 @@ class MarkdownEditor {let cursorPos = this.cm.getCursor('from');window.ImageManager.show(image => {let selectedText = this.cm.getSelection();- let newText = "";+ let newText = "[](" + image.url + ")";this.cm.focus();this.cm.replaceSelection(newText);this.cm.setCursor(cursorPos.line, cursorPos.ch + newText.length);@@ -427,4 +427,4 @@ class MarkdownEditor {}-module.exports = MarkdownEditor ;\ No newline at end of file+module.exports = MarkdownEditor ;