diff --git a/web_src/js/index.js b/web_src/js/index.js
index aa684b0467..97653c0366 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -362,7 +362,7 @@ function initImagePaste(target) {
const name = img.name.substr(0, img.name.lastIndexOf('.'));
insertAtCursor(textarea, `![${name}]()`);
const data = await uploadFile(img, uploadUrl);
- replaceAndKeepCursor(textarea, `![${name}]()`, ``);
+ replaceAndKeepCursor(textarea, `![${name}]()`, ``);
const input = $(``).val(data.uuid);
dropzoneFiles.appendChild(input[0]);
}
@@ -378,7 +378,7 @@ function initSimpleMDEImagePaste(simplemde, dropzone, files) {
const name = img.name.substr(0, img.name.lastIndexOf('.'));
const data = await uploadFile(img, uploadUrl);
const pos = simplemde.codemirror.getCursor();
- simplemde.codemirror.replaceRange(``, pos);
+ simplemde.codemirror.replaceRange(``, pos);
const input = $(``).val(data.uuid);
files.append(input);
}