plate
plate copied to clipboard
Bold, Italic, Underline doesn't toggle properly for a markable Void
Description I have a markable void. I can turn on bold, italic, and underlines no problem. However, I can't turn them off. It seems that the child text element of the void keeps the bold field to true.
Please note, if I use the slate version, it works as expected
if (i) {
Editor.removeMark(editor as BaseEditor, MARK_BOLD);
} else {
Editor.addMark(editor as BaseEditor, MARK_BOLD, true);
}
Steps

- slate: 0.91.4
- slate-react: 0.91.4
- browser: chrome