apostrophe
apostrophe copied to clipboard
Rich-text removing span tags configured with the configured class attribute(s)
To Reproduce
Step by step instructions to reproduce the behavior:
- Setting the style option in rich-text: { tag: 'span', label: 'Highlight: Red', class: 'highlight-red' }
- In rich-text editor, set the selected option on the text.
![]()
- Switch from edit mode to preview mode and back. Style option is no longer set in edit mode.
![]()
- You can save this style option state, however if you make an update in the rich-text editor afterwards the set style option will then be removed as being set.
Expected behavior
To keep the set style option in preview mode after being set as well as when any edits are made to the rich-text afterwards
Describe the bug
The rich-text style option is not setting in preview mode after initial setting in preview mode, as well as being removed after edits are made in the rich-text
Details
Version of System: Node.js v18.18.0, Mac OS, Apostrophe v3.59.1
I can confirm this is occuring and has been for awhile. I'll open a ticket. Thanks for bringing it to our attention!
I don't completely understand the ticket.
Is the span getting stripped out on save, or is it something more nuanced than that? Exactly what happens?
Thanks!
I'll update the ticket.
Hi anyone is working on this issue?
There is an open ticket, but I don't think it is in the current cycle. Have you worked with Tiptap before?
Hello, @BoDonkey! I'm new to contributing to open source, and I haven't had any experience with Tiptap before. Is Tiptap somehow related to this particular issue?
Yeah - This bug is in the rich text editor widget of the ApostropheCMS framework. That RTW is powered by Tiptap. This isn't really an easy ticket unless you know both Tiptap and Apostrophe. I need to find some other issues that are good first time issues. You can come to our Discord channel to discuss open-source contribution if you would like. https://discord.com/invite/HwntQpADJr It is a bit quiet at the moment, but we are trying to build it up. You can AMA, not just about Apostrophe.
This was fixed as of the 3.62.2
release @unknownBalak