Hi!
We’re working on a project, which uses ProseMirror as WYSIWYG editor for text in a photo books editor. One important feature we need is styling the text with various font families and font sizes. And we’ve hit some issues implementing that.
We currently implement font sizes and font families selectors as two marks. And the issues we have are:
- ProseMirror clears the currently enabled marks if you select the font size, type some text, then delete all of it. Which is quite annoying from UX perspective.
- ProseMirror doesn’t preserve the font size when user creates a new paragraph. So, if user selected 18px, then typed something, hit Enter, the font size got back to some default one inherited from CSS (e.g. 12px). Also quite annoying for users.
- Sometimes photo books designs should have various default settings for text - e.g. it could be font like “Helvetica 24px” for all the new text items on the pages. There seems like no any way to specify default marks for the text in ProseMirror.
How would you recommend to solve those issues?
Thanks a lot! ProseMirror is really cool