mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Enable spellcheck for EasyMDE, use contenteditable mode (#19776)
Enable spellcheck for EasyMDE, use contenteditable mode. Rewrite and refactor the ImagePaste code.
This commit is contained in:
		@@ -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);
 | 
			
		||||
  })();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user