Hi,
in the documentation, i can see a color selector which is not available when i use it in sharepoint online. Is there anything to do to have it ?
Dear David,
Thank you for your request, we are working on this issue.
Dear David,
Please use this code to add a text color selector:
fd.spRendered(function() {
var ts = fd.field("Multiline").widget.toolbar.tools;
var result = Object.keys(ts).map(function(key) {
return {"name": String(key)};
});
result.splice(1, 0, {name: "foreColor"});
fd.field('Multiline').widgetOptions = {
tools: result
};
})
Notice that you should replace “Multiline” with the internal name of your field.