<dl class="jsButtonSetting{if $errorField == 'wysiwygIcon'} formError{/if}">
<dt><label for="wysiwygIcon">{lang}wcf.acp.bbcode.wysiwygIcon{/lang}</label></dt>
<dd>
- <input type="text" id="wysiwygIcon" name="wysiwygIcon" value="{$wysiwygIcon}" class="long">
+ <div class="inputAddon">
+ <input type="text" id="wysiwygIcon" name="wysiwygIcon" value="{$wysiwygIcon}" class="medium">
+ <a href="#" class="inputSuffix button jsButtonSearchWysiwygIcon"><span class="icon icon16 fa-search"></span></a>
+ </div>
{if $errorField == 'wysiwygIcon'}
<small class="innerError">
{if $errorType == 'empty'}
</div>
</form>
-{include file='footer'}
\ No newline at end of file
+{include file='fontAwesomeJavaScript'}
+<script data-relocate="true">
+ require(['WoltLabSuite/Core/Ui/Style/FontAwesome'], function (UiStyleFontAwesome) {
+ elBySel('.jsButtonSearchWysiwygIcon').addEventListener(WCF_CLICK_EVENT, function(event) {
+ event.preventDefault();
+
+ UiStyleFontAwesome.open(function(iconName) {
+ elById('wysiwygIcon').value = 'fa-' + iconName;
+ });
+ });
+ });
+</script>
+
+{include file='footer'}