summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-release.js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-06-29 01:52:58 +0800
committerGitHub <noreply@github.com>2022-06-29 01:52:58 +0800
commit76910f213f2765b0bdf16e0d5ec48ffbd3c9f55e (patch)
tree4261947b85f275da39a53f032374c5a0a867a2b1 /web_src/js/features/repo-release.js
parentcdd6371ad484cce6233892d8f6744b52cd38e0c8 (diff)
downloadgitea-76910f213f2765b0bdf16e0d5ec48ffbd3c9f55e.tar.gz
gitea-76910f213f2765b0bdf16e0d5ec48ffbd3c9f55e.zip
Enable spellcheck for EasyMDE, use contenteditable mode (#19776)
Enable spellcheck for EasyMDE, use contenteditable mode. Rewrite and refactor the ImagePaste code.
Diffstat (limited to 'web_src/js/features/repo-release.js')
-rw-r--r--web_src/js/features/repo-release.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/web_src/js/features/repo-release.js b/web_src/js/features/repo-release.js
index a44b91f35b..b68a7a6cd5 100644
--- a/web_src/js/features/repo-release.js
+++ b/web_src/js/features/repo-release.js
@@ -23,10 +23,9 @@ export function initRepoReleaseEditor() {
(async () => {
const $textarea = $editor.find('textarea');
await attachTribute($textarea.get(), {mentions: false, emoji: true});
- const $files = $editor.parent().find('.files');
const easyMDE = await createCommentEasyMDE($textarea);
initCompMarkupContentPreviewTab($editor);
- const dropzone = $editor.parent().find('.dropzone')[0];
- initEasyMDEImagePaste(easyMDE, dropzone, $files);
+ const $dropzone = $editor.parent().find('.dropzone');
+ initEasyMDEImagePaste(easyMDE, $dropzone);
})();
}