-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow to add markup in HTML mode #298
Comments
This is by design with ProseMirror and its schema. You can't just add arbitrary HTML and have it save against a node. So while you can edit the raw HTML of the field, it won't necessarily save everything as you input it. This is to ensure that the HTML can be effectively represented as blocks of content (JSON). This is true for HTML elements (the tags) and the attributes on the tag. We would need to modify the default Heading tag to allow for any additional attributes we want to support. See #255 We need to look at ways to force-save node attributes in some fashion, but it's going against both Tiptap and ProseMirror. |
What are you trying to do?
I try to add a custom CSS class to a H2 tag
What's your proposed solution?
allow custom markup if HTML mode ist enabled in config
Additional context
No response
The text was updated successfully, but these errors were encountered: