Voilà c'est fait , j'ai pu ajouter du saumon ....
cette fois-ci on ne piquera pas le poisson ...
voici le code à ajouter
{
name: "salmon",
color: "#FA8072"
}
voici le fichier à modifier :
\lib\editor\atto\plugins\fontcolor\yui\build\moodle-atto_fontcolor-button\moodle-atto_fontcolor-button-min.js
YUI.add("moodle-atto_fontcolor-button", function (e, t) {
var n = [{
name: "white",
color: "#FFFFFF"
}, {
name: "red",
color: "#EF4540"
}, {
name: "yellow",
color: "#FFCF35"
}, {
name: "green",
color: "#98CA3E"
}, {
name: "blue",
color: "#7D9FD3"
}, {
name: "black",
color: "#333333"
},
{
name: "salmon",
color: "#FA8072"
}
];
e.namespace("M.atto_fontcolor").Button = e.Base.create("button", e.M.editor_atto.EditorPlugin, [], {
initializer: function () {
var t = [];
e.Array.each(n, function (e) {
t.push({
text: '<div style="width: 20px; height: 20px; border: 1px solid #CCC; background-color: ' + e.color + '"></div>',
callbackArgs: e.color,
callback: this._changeStyle
})
}), this.addToolbarMenu({
icon: "e/text_color",
overlayWidth: "4",
menuColor: "#333333",
globalItemConfig: {
callback: this._changeStyle
},
items: t
})
},
_changeStyle: function (e, t) {
this.get("host").formatSelectionInlineStyle({
color: t
})
}
})
}, "@VERSION@");