From: Matthias Schmidt Date: Thu, 31 Oct 2019 14:03:58 +0000 (+0100) Subject: Fix editing non-image media files X-Git-Tag: 5.2.0_Beta_3~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=208b61db4849ee3ccef640395c9f356ca7500cd1;p=GitHub%2FWoltLab%2FWCF.git Fix editing non-image media files See #2722 --- 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,