1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 13:30:25 +02:00

[ticket/17326] Add font icon field for custom BBCodes

Adds a new field to the custom BBCode add/edit form that
allows admins to define a Font Awesome icon to be displayed
instead of the BBCodes name on the posting.php editor page.

PHPBB-17326
This commit is contained in:
Daniel James
2024-06-25 16:36:49 +01:00
committed by Marc Alexander
parent f6c9d15b0c
commit f5bb065a4d
8 changed files with 92 additions and 4 deletions

View File

@@ -277,5 +277,10 @@ function parse_document(container)
$('.actions a:has(i.acp-icon)').mouseover(function () {
$(this).css("text-decoration", "none");
});
// Live update BBCode font icon preview
$('#bbcode_font_icon').on('keyup', function(e) {
$('#bbcode_icon_preview').attr('class', "o-icon o-icon-font fa-fw fas icon fa-" + $(this).val());
});
});
})(jQuery);