How to Change HTML Markup Stored in Database #416
Unanswered
ruslansteiger
asked this question in
Q&A
Replies: 1 comment
-
You can leverage handleRecordUpdate on the resource record, something like this
you will also need to hydrate the body so that returns it to it's original format when loading the body, so that you don't have any undesirably formatting issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone 👋
I have a specific requirement for the HTML markup that is stored in the database.
By default, the editor saves buttons in the following format:
However, I need to store the markup in the following format instead:
Is there a way to customize the Editor so that it saves the button links wrapped in a div with a class of button as shown above? If so, could someone guide me on how to achieve this?
Thank you in advance for your help! 😊
Best regards,
Ruslan
Beta Was this translation helpful? Give feedback.
All reactions