Explorar o código

prevent pasting text in textAreaEditor

yusuketk %!s(int64=7) %!d(string=hai) anos
pai
achega
27740ce5b0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/client/js/components/PageEditor/TextAreaEditor.js

+ 1 - 0
src/client/js/components/PageEditor/TextAreaEditor.js

@@ -220,6 +220,7 @@ export default class TextAreaEditor extends AbstractEditor {
 
     // files
     if (types.includes('Files')) {
+      event.preventDefault();
       this.dispatchPasteFiles(event);
     }
     // text