summaryrefslogtreecommitdiff
path: root/public/vendor/inlineAttachment
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpublic/vendor/inlineAttachment/codemirror.inline-attachment.js2
-rwxr-xr-xpublic/vendor/inlineAttachment/inline-attachment.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/public/vendor/inlineAttachment/codemirror.inline-attachment.js b/public/vendor/inlineAttachment/codemirror.inline-attachment.js
index 7816d1c8..08bc4924 100755
--- a/public/vendor/inlineAttachment/codemirror.inline-attachment.js
+++ b/public/vendor/inlineAttachment/codemirror.inline-attachment.js
@@ -88,6 +88,8 @@
return false;
}
});
+
+ return inlineattach;
};
inlineAttachment.editors.codemirror4 = codeMirrorEditor4;
diff --git a/public/vendor/inlineAttachment/inline-attachment.js b/public/vendor/inlineAttachment/inline-attachment.js
index 9353ebd8..0ffd3f9f 100755
--- a/public/vendor/inlineAttachment/inline-attachment.js
+++ b/public/vendor/inlineAttachment/inline-attachment.js
@@ -352,7 +352,7 @@
inlineAttachment.prototype.onFileInserted = function(file, id) {
if (this.settings.onFileReceived.call(this, file) !== false) {
this.lastValue = this.settings.progressText.replace(this.filenameTag, id);
- this.editor.insertValue(this.lastValue);
+ this.editor.insertValue(this.lastValue + "\n");
}
};