Fixed forum editor file upload issue

This commit is contained in:
Asaf Gartner 2021-12-21 07:13:02 +02:00
parent 88776cbb72
commit 321089ea8e
3 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,7 @@
}); });
// Do live Markdown previews // Do live Markdown previews
initLiveMarkdown({ inputEl: textField, previewEl: preview }); let doMarkdown = initLiveMarkdown({ inputEl: textField, previewEl: preview });
/* /*
/ Asset upload / Asset upload

View File

@ -102,5 +102,7 @@
doMarkdown(); doMarkdown();
inputEl.addEventListener('input', () => doMarkdown()); inputEl.addEventListener('input', () => doMarkdown());
return doMarkdown;
} }
</script> </script>

View File

@ -227,7 +227,7 @@
}); });
projectForm.addEventListener('submit', () => clearDescription()); projectForm.addEventListener('submit', () => clearDescription());
initLiveMarkdown({ inputEl: description, previewEl: descPreview }); let doMarkdown = initLiveMarkdown({ inputEl: description, previewEl: descPreview });
////////////////////// //////////////////////
// Owner management // // Owner management //