Properly cancel some pasting in Chrome
authorAlexander Ebert <ebert@woltlab.com>
Tue, 17 Jan 2017 12:53:25 +0000 (13:53 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 17 Jan 2017 13:39:40 +0000 (14:39 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js

index edf1bce95e3f270b2f1d97488b007093a0f25ccb..d3b3a2df427c6238e8580159fd1dd5480ffbf83a 100644 (file)
@@ -87,6 +87,7 @@ $.Redactor.prototype.WoltLabPaste = function() {
                                                if (this.detect.isWebkit() && clipboard.items.length > 1) {
                                                        file = clipboard.items[1].getAsFile();
                                                        cancelPaste = true;
+                                                       e.preventDefault();
                                                }
                                                
                                                if (file === null) {