Do you want to request a feature or report a bug?
Bug
What is the current behaviour?
Redo and Undo controls buttons cannot be overwritten with custom icons
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. GIFs and screenshots are very helpful too.
Editor config that I'm using
<DraftailEditor
{...otherProps}
rawContentState={fromHTML(content)}
onSave={data => onChange(toHTML(data))}
showUndoControl={{
description: t('editor.undo'),
icon: <FontAwesomeIcon icon={faUndo} size="xs" />,
}.UNDO}
showRedoControl={{
description: t('editor.redo'),
icon: <FontAwesomeIcon icon={faRedo} size="xs" />,
}}
inlineStyles={[
{
type: INLINE_STYLE.UNDERLINE,
icon: <FontAwesomeIcon icon={faUnderline} size="xs" />,
description: t('editor.underline'),
}
]}
/>
Result:

The icon does not appear inside button control.
It works correctly for INLINE or BLOCK styles blocks though.
What is the expected behaviour?
The icon should appear inside button control.
Which versions of Draftail + Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draftail or Draft.js?
^1.0.0, Chrome, MacOS, don't know
Do you want to request a feature or report a bug?
Bug
What is the current behaviour?
Redo and Undo controls buttons cannot be overwritten with custom icons
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. GIFs and screenshots are very helpful too.
Editor config that I'm using
Result:
The icon does not appear inside button control.
It works correctly for INLINE or BLOCK styles blocks though.
What is the expected behaviour?
The icon should appear inside button control.
Which versions of Draftail + Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draftail or Draft.js?
^1.0.0, Chrome, MacOS, don't know