Update head_tag.html

This commit is contained in:
iunctis.fr 2020-08-10 15:24:38 +02:00 committed by GitHub
parent 01de9708d0
commit c5b28c8651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,14 @@ api.onToolbarCreate(toolbar => {
perform: e => e.applySurround('[wrap="justify"]\n', '\n[/wrap]', 'align_justify_text')
});
});
api.onToolbarCreate(toolbar => {
toolbar.addButton({
id: "bbcode_color_button",
group: "extras",
icon: "palette",
perform: e => e.applySurround('[color=#222]', '[/color]', 'bbcode_color_text')
});
});
// EXTRAS
api.addToolbarPopupMenuOptionsCallback(() => {
@ -114,6 +122,10 @@ translations.composer.strikethrough_button_title = settings.strikethrough_button
translations.composer.strikethrough_text =
settings.strikethrough_text;
translations.composer.bbcode_color_button_title = settings.bbcode_color_button;
translations.composer.bbcode_color_text =
settings.bbcode_color_text;
translations.composer.superscript_button_title = settings.superscript_button;
translations.composer.superscript_text =
settings.superscript_text;