You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some basic features of an RTE are missing and you have to implement them yourself. Some seem easy but need good understanding of the ProseMirror API and some additional examples would help to create more complex cases which are then really something very use case specific.
Describe the solution you'd like
One feature I'm trying to implement and struggling with the API is text-align for paragraphs.
I would put the cursor somewhere within a paragraph and then select its alignment.
Additional context
If someone can provide a way to do this even if it doesn't make it into the default extensions, I'd appreciate it.
The text was updated successfully, but these errors were encountered:
After almost a day of try and error and looking at some ProseMirror JavaScript code, I found a working solution (mostly struggling with content and group). This is just the right alignment one, but center and justify are almost the same, and maybe it would be possible to have it generic in one, but as I said, I am new to this API:
Thanks @onyx-blackbird! We’ve added a TextAlign extension to the upcoming tiptap v2. And there will be a huuuge documentation for v2 with a lot of examples. 👍 I’m closing this here already.
Is your feature request related to a problem? Please describe.
Some basic features of an RTE are missing and you have to implement them yourself. Some seem easy but need good understanding of the ProseMirror API and some additional examples would help to create more complex cases which are then really something very use case specific.
Describe the solution you'd like
One feature I'm trying to implement and struggling with the API is text-align for paragraphs.
I would put the cursor somewhere within a paragraph and then select its alignment.
Additional context
If someone can provide a way to do this even if it doesn't make it into the default extensions, I'd appreciate it.
The text was updated successfully, but these errors were encountered: