Pasting from clipboard was breaking keydown handling
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 09:36:01 +0000 (11:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 09:36:09 +0000 (11:36 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js

index 29a0d09905ef6dad013e85672fb6d04e712dd107..c328a41aad86ae6eb65a2a58b09a7aed7da160df 100644 (file)
@@ -106,6 +106,8 @@ $.Redactor.prototype.WoltLabPaste = function() {
                                WCF.System.Event.fireEvent('com.woltlab.wcf.redactor2', 'pasteFromClipboard_' + this.$element[0].id, {
                                        blob: this.utils.dataURItoBlob(e.target.result)
                                });
+                               
+                               this.rtePaste = false;
                        }).bind(this);
                        
                        var transparentGif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
@@ -166,6 +168,7 @@ $.Redactor.prototype.WoltLabPaste = function() {
                                        }).bind(this), 50);
                                }
                                
+                               this.rtePaste = false;
                        }).bind(this);
                        
                        this.paste.clipboardUpload = function () { /* not required, images are handled in `paste.insert()` below */ };