From 208b61db4849ee3ccef640395c9f356ca7500cd1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 31 Oct 2019 15:03:58 +0100 Subject: [PATCH] Fix editing non-image media files See #2722 --- wcfsetup/install/files/js/WoltLabSuite/Core/Media/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Editor.js index dfad3d8122..9f5b8072dd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Editor.js @@ -192,7 +192,7 @@ define( } // captionEnableHtml - this._media.captionEnableHtml = ~~elBySel('input[name=captionEnableHtml]', content).checked; + if (captionEnableHtml) this._media.captionEnableHtml = ~~captionEnableHtml.checked; var aclValues = { allowAll: ~~elById('mediaEditor_' + this._media.mediaID + '_aclAllowAll').checked, -- 2.20.1