From c5b28c8651358562f0bbc53b69ab347d0fd0dd01 Mon Sep 17 00:00:00 2001 From: "iunctis.fr" Date: Mon, 10 Aug 2020 15:24:38 +0200 Subject: [PATCH] Update head_tag.html --- desktop/head_tag.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/desktop/head_tag.html b/desktop/head_tag.html index d06c12f..31ae554 100644 --- a/desktop/head_tag.html +++ b/desktop/head_tag.html @@ -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(() => { @@ -113,6 +121,10 @@ translations.composer.align_justify_text = 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 =