plate icon indicating copy to clipboard operation
plate copied to clipboard

Bold, Italic, Underline doesn't toggle properly for a markable Void

Open vcellu opened this issue 2 years ago • 0 comments

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

image

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

vcellu avatar Apr 20 '23 11:04 vcellu