From f95efb3e2f23c46d116d2fb5049cb24e92354f9c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 26 Sep 2017 12:07:02 +0200 Subject: [PATCH] Prevent drag & drop of toolbar buttons in Firefox --- .../files/js/3rdParty/redactor2/plugins/WoltLabButton.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js index ae4e9bf0e7..a7d8a76f4f 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js @@ -152,6 +152,11 @@ $.Redactor.prototype.WoltLabButton = function() { setup: this.WoltLabButton._setupToggleButton.bind(this) }); }).bind(this)); + + // prevent drag & drop of toolbar buttons + this.$toolbar[0].addEventListener('dragstart', function (event) { + event.preventDefault(); + }); }, _handleCustomButton: function (bbcode) { -- 2.20.1