lint
This commit is contained in:
@ -45,10 +45,10 @@ class MarkdownEditor extends React.Component {
|
|||||||
// Lets set up the upload text
|
// Lets set up the upload text
|
||||||
const pendingUploadTag = ``;
|
const pendingUploadTag = ``;
|
||||||
if (insertOnNewLine) {
|
if (insertOnNewLine) {
|
||||||
editor.replaceSelection('\n' + pendingUploadTag + '\n');
|
editor.replaceSelection(`\n${pendingUploadTag}\n`);
|
||||||
newCursorPositionLine = cursorPosition.line + 3;
|
newCursorPositionLine = cursorPosition.line + 3;
|
||||||
} else {
|
} else {
|
||||||
editor.replaceSelection(pendingUploadTag + '\n');
|
editor.replaceSelection(`${pendingUploadTag}\n`);
|
||||||
newCursorPositionLine = cursorPosition.line + 2;
|
newCursorPositionLine = cursorPosition.line + 2;
|
||||||
}
|
}
|
||||||
editor.setCursor(newCursorPositionLine, 0);
|
editor.setCursor(newCursorPositionLine, 0);
|
||||||
@ -63,7 +63,7 @@ class MarkdownEditor extends React.Component {
|
|||||||
// Upload using FormData API
|
// Upload using FormData API
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
||||||
for (let key in data.form) {
|
for (const key in data.form) {
|
||||||
formData.append(key, data.form[key]);
|
formData.append(key, data.form[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user