From: Alexander Ebert Date: Mon, 6 Jun 2016 12:24:21 +0000 (+0200) Subject: Allow undoing of inserted attachments X-Git-Tag: 3.0.0_Beta_1~1516 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=594f4ba023654621225f19cefd3d5d3772ddee7b;p=GitHub%2FWoltLab%2FWCF.git Allow undoing of inserted attachments --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js index cbadfd294a..79fd1e700f 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js @@ -12,6 +12,8 @@ $.Redactor.prototype.WoltLabAttachment = function() { _insert: function(data) { var attachmentId = data.attachmentId; + this.buffer.set(); + if (data.url) { this.insert.html(''); }