I'd like to change the color button to apply a block style, rather than an inline style. If I am in an h4, the code below works.
config.colorButton_foreStyle = {
element: 'h4',
styles: { color: '#(color)' }
};
However, realistically the user can be in anything (IE <p>, <h1>, etc). What I'm looking for is something like ...
config.colorButton_foreStyle = {
element: [the element my cursor is in],
styles: { color: '#(color)' }
};
Is that possible? Or can I override the button somehow to change its behavior?
Thanks!