From 594f4ba023654621225f19cefd3d5d3772ddee7b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 6 Jun 2016 14:24:21 +0200 Subject: [PATCH] Allow undoing of inserted attachments --- .../files/js/3rdParty/redactor2/plugins/WoltLabAttachment.js | 2 ++ 1 file changed, 2 insertions(+) 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(''); } -- 2.20.1