Actualiser desktop/head_tag.html

Corrections des boutons de couleurs non-fonctionnels.
This commit is contained in:
Esenjin_Asakha 2024-09-03 11:20:36 +00:00
parent 88e072dc8e
commit f2423c5599

View File

@ -49,78 +49,43 @@ api.onToolbarCreate(toolbar => {
perform: e => e.applySurround('[wrap="justify"]\n', '\n[/wrap]', 'align_justify_text')
});
});
// EXTRAS
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "bleu_color",
action: "bleucolor",
api.onToolbarCreate(toolbar => {
toolbar.addButton({
id: "bleu_color_button",
group: "colorStyles",
icon: "palette",
label: "bleu_color_button"
};
perform: e => e.applySurround('[color=#068EEF]', '[/color]', 'bleu_color_text')
});
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "rose_color",
action: "rosecolor",
toolbar.addButton({
id: "rose_color_button",
group: "colorStyles",
icon: "palette",
label: "rose_color_button"
};
perform: e => e.applySurround('[color=#EF06A0]', '[/color]', 'rose_color_text')
});
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "jaune_color",
action: "jaunecolor",
toolbar.addButton({
id: "jaune_color_button",
group: "colorStyles",
icon: "palette",
label: "jaune_color_button"
};
perform: e => e.applySurround('[color=#EFC906]', '[/color]', 'jaune_color_text')
});
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "orange_color",
action: "orangecolor",
toolbar.addButton({
id: "orange_color_button",
group: "colorStyles",
icon: "palette",
label: "orange_color_button"
};
perform: e => e.applySurround('[color=#EF8806]', '[/color]', 'orange_color_text')
});
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "rouge_color",
action: "rougecolor",
toolbar.addButton({
id: "rouge_color_button",
group: "colorStyles",
icon: "palette",
label: "rouge_color_button"
};
perform: e => e.applySurround('[color=#EF0606]', '[/color]', 'rouge_color_text')
});
api.addToolbarPopupMenuOptionsCallback(() => {
return {
id: "vert_color",
action: "vertcolor",
toolbar.addButton({
id: "vert_color_button",
group: "colorStyles",
icon: "palette",
label: "vert_color_button"
};
perform: e => e.applySurround('[color=#2A821C]', '[/color]', 'vert_color_text')
});
api.modifyClass("controller:composer", {
actions: {
bleucolor() {
this.get("toolbarEvent").applySurround('[color=#068EEF]', '[/color]', "bleu_color_text");
},
rosecolor() {
this.get("toolbarEvent").applySurround('[color=#EF06A0]', '[/color]', "rose_color_text");
},
jaunecolor() {
this.get("toolbarEvent").applySurround('[color=#EFC906]', '[/color]', "jaune_color_text");
},
orangecolor() {
this.get("toolbarEvent").applySurround('[color=#EF8806]', '[/color]', "orange_color_text");
},
rougecolor() {
this.get("toolbarEvent").applySurround('[color=#EF0606]', '[/color]', "rouge_color_text");
},
vertcolor() {
this.get("toolbarEvent").applySurround('[color=#2A821C]', '[/color]', "vert_color_text");
},
}
});
// TEXTS