diff --git a/client/modules/IDE/components/Editor/stateUtils.js b/client/modules/IDE/components/Editor/stateUtils.js index e3a90e813a..2eb497c2c7 100644 --- a/client/modules/IDE/components/Editor/stateUtils.js +++ b/client/modules/IDE/components/Editor/stateUtils.js @@ -359,6 +359,15 @@ export function createNewFileState(filename, document, settings) { if (fileEmmetConfig) { extensions.push(fileEmmetConfig); extensions.push(abbreviationTracker()); + extensions.push( + EditorView.domEventHandlers({ + paste(event, view) { + setTimeout(() => { + expandAbbreviation(view); + }, 0); + } + }) + ); keymaps.push(emmetKeymaps); }