sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
319 stars 43 forks source link

Fall back to default mark color if highlight is active but has "" color #142

Closed sjdemartini closed 1 year ago

sjdemartini commented 1 year ago

If highlighting is active but the Tiptap state has color is empty, we should fall back to showing the "active color" in button and color-picker as the defaultMarkColor. We were already doing this if the color was null, but this fixes it so it behaves that way if the color attribute is an empty string too.