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