Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Color Preview in Text Editor #165

Open
xHati44 opened this issue Sep 30, 2023 · 2 comments
Open

Live Color Preview in Text Editor #165

xHati44 opened this issue Sep 30, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@xHati44
Copy link

xHati44 commented Sep 30, 2023

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

@sjdemartini
Copy link
Owner

@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.

@xHati44
Copy link
Author

xHati44 commented Oct 1, 2023

Owner

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

@sjdemartini sjdemartini added the enhancement New feature or request label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants