mui-tiptap icon indicating copy to clipboard operation
mui-tiptap copied to clipboard

Live Color Preview in Text Editor

Open xHati44 opened this issue 1 year ago • 2 comments

I've been using your text editor module with MUI and TipTap integration and it's been invaluable in my project.

I was wondering, is there currently a way to see the applied text color without having to save and manually deselect the text? If not, I'd like to suggest a feature. It would be great if there was an option for a preview that automatically deselects the text while it's still in focus, so users can instantly see the chosen color. image

xHati44 avatar Sep 30 '23 18:09 xHati44

@xHati44 great to hear that mui-tiptap has been useful to you! This is an interesting idea which I hadn't considered. I'm not sure how it ought to work in practice, since I'd imagine you'd have to set the color temporarily in the Tiptap editor state but still allow "canceling" to undo (and also re-select after), which seems to tricky to get right, so I'd have to think about it a bit more and play around with it. I'll keep this in mind for later.

sjdemartini avatar Oct 01 '23 19:10 sjdemartini

Owner

I imagine it's harder to implement this within tiptap. I have implemented similar thing. Definitely looking forward to this feature. dZeSKGo

xHati44 avatar Oct 01 '23 22:10 xHati44