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