Allow custom images as the icon for the bbcode button
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Apr 2023 17:29:19 +0000 (19:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Apr 2023 17:29:19 +0000 (19:29 +0200)
See #5182

wcfsetup/install/files/acp/templates/bbcodeAdd.tpl

index bfc3e19a3f233d792ae2bde5f0c63f4e8c3ccc06..214ddf6c8838c8173eaca9108f783939ef691171 100644 (file)
                                <dt><label for="wysiwygIcon">{lang}wcf.acp.bbcode.wysiwygIcon{/lang}</label></dt>
                                <dd>
                                        <div class="inputAddon">
-                                               <input type="text" id="wysiwygIcon" name="wysiwygIcon" value="{$wysiwygIcon}" class="medium" readonly>
+                                               <input type="text" id="wysiwygIcon" name="wysiwygIcon" value="{$wysiwygIcon}" class="medium">
                                                <button type="button" class="inputSuffix button jsButtonSearchWysiwygIcon">{icon name='magnifying-glass'}</button>
                                        </div>
                                        {if $errorField == 'wysiwygIcon'}
                }
 
                button.addEventListener("click", () => openFontAwesomePicker());
-               input.addEventListener("click", () => openFontAwesomePicker());
        });
 </script>