If you do get around to implementing such toggles / HTML <details> elements in the WYSIWYG editor, I recommend checking out how Notion implements their toggles, and especially their toggle headings.
If you do get around to implementing such toggles / HTML <details> elements in the WYSIWYG editor, I recommend checking out how Notion implements their toggles, and especially their toggle headings.