revert f2423c5599
revert Actualiser desktop/head_tag.html Corrections des boutons de couleurs non-fonctionnels.
This commit is contained in:
parent
f2423c5599
commit
c2cc110b45
@ -49,43 +49,78 @@ 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 => {
|
|
||||||
toolbar.addButton({
|
// EXTRAS
|
||||||
id: "bleu_color_button",
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
group: "colorStyles",
|
return {
|
||||||
icon: "palette",
|
id: "bleu_color",
|
||||||
perform: e => e.applySurround('[color=#068EEF]', '[/color]', 'bleu_color_text')
|
action: "bleucolor",
|
||||||
});
|
icon: "palette",
|
||||||
toolbar.addButton({
|
label: "bleu_color_button"
|
||||||
id: "rose_color_button",
|
};
|
||||||
group: "colorStyles",
|
});
|
||||||
icon: "palette",
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
perform: e => e.applySurround('[color=#EF06A0]', '[/color]', 'rose_color_text')
|
return {
|
||||||
});
|
id: "rose_color",
|
||||||
toolbar.addButton({
|
action: "rosecolor",
|
||||||
id: "jaune_color_button",
|
icon: "palette",
|
||||||
group: "colorStyles",
|
label: "rose_color_button"
|
||||||
icon: "palette",
|
};
|
||||||
perform: e => e.applySurround('[color=#EFC906]', '[/color]', 'jaune_color_text')
|
});
|
||||||
});
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
toolbar.addButton({
|
return {
|
||||||
id: "orange_color_button",
|
id: "jaune_color",
|
||||||
group: "colorStyles",
|
action: "jaunecolor",
|
||||||
icon: "palette",
|
icon: "palette",
|
||||||
perform: e => e.applySurround('[color=#EF8806]', '[/color]', 'orange_color_text')
|
label: "jaune_color_button"
|
||||||
});
|
};
|
||||||
toolbar.addButton({
|
});
|
||||||
id: "rouge_color_button",
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
group: "colorStyles",
|
return {
|
||||||
icon: "palette",
|
id: "orange_color",
|
||||||
perform: e => e.applySurround('[color=#EF0606]', '[/color]', 'rouge_color_text')
|
action: "orangecolor",
|
||||||
});
|
icon: "palette",
|
||||||
toolbar.addButton({
|
label: "orange_color_button"
|
||||||
id: "vert_color_button",
|
};
|
||||||
group: "colorStyles",
|
});
|
||||||
icon: "palette",
|
api.addToolbarPopupMenuOptionsCallback(() => {
|
||||||
perform: e => e.applySurround('[color=#2A821C]', '[/color]', 'vert_color_text')
|
return {
|
||||||
});
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user