Replies: 1 comment 4 replies
-
|
Do you have a repo you can share showing the issue. Code blocks are working correctly in the demo app. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to add a Code Block to the RTE for a blog post in our CMS. Works great when creating the content. When I go to edit the content later tho and save the post, only the first word in the code block is saved for some reason. After some searching, I'm looking into white space being the problem (open to other possibilities!)
So, how can I add the
preserveWhiteSpacecall to the editor instance? I've tried the following with no success:as well as
Does anyone know how to get code blocks to work when editing the form field? (i create a post, refresh the form, save the post and the content is not correct).
Beta Was this translation helpful? Give feedback.
All reactions