Fixed figcaption being inserted all the time
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 Jul 2016 22:08:12 +0000 (00:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 Jul 2016 22:08:12 +0000 (00:08 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js

index 1e537f65fde65428be16d9d3000851be3261fd02..e48ef1ffaed9b0f6534828caa30675f61a20551c 100644 (file)
@@ -96,6 +96,7 @@ $.Redactor.prototype.WoltLabImage = function() {
                                                + '</dd>'
                                        + '</dl>'
                                        + '<input id="redactor-image-title" style="display: none">' /* dummy because redactor expects it to be present */
+                                       + '<input id="redactor-image-caption" style="display: none">' /* dummy because redactor expects it to be present */
                                        + '<div class="formSubmit">'
                                                + '<button id="redactor-modal-button-action" class="buttonPrimary">Insert</button>'
                                                + '<button id="redactor-modal-button-delete" class="redactor-modal-button-offset">Delete</button>'