diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index d4d955601..776e63a83 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -7,6 +7,7 @@ import {showGlobalErrorMessage} from '../bootstrap.js'; import {handleGlobalEnterQuickSubmit} from './comp/QuickSubmit.js'; import {svg} from '../svg.js'; import {hideElem, showElem, toggleElem} from '../utils/dom.js'; +import {htmlEscape} from 'escape-goat'; const {appUrl, csrfToken} = window.config; @@ -168,6 +169,8 @@ export function initGlobalDropzone() { let fileMarkdown = `[${file.name}](/attachments/${file.uuid})`; if (file.type.startsWith('image/')) { fileMarkdown = `!${fileMarkdown}`; + } else if (file.type.startsWith('video/')) { + fileMarkdown = ``; } navigator.clipboard.writeText(fileMarkdown); });