Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a way via the API to fetch rich text from a rich text editor in some kind of JSON structure rather than as parsed HTML? Since we would like to do some custom parsing it would be smoother than to parse a HTML string.
Hey Joakim.
Not entirely sure what exactly you're trying to do.
RTE in Heartcore returns a string containing HTML code e.g:
"propertyEditorAlias": "<p>This is a paragraph</p>"
and if you try to render it on the frontend as a string you'll get everything including the HTML tags.
You'll need to specify in your code that it's not a normal text string.
In Vue you can do this - https://www.geeksforgeeks.org/vue-js-v-html-directive/
Docs - https://github.com/umbraco/Umbraco.Headless.StaticWebApp.Vue/blob/master/src/components/elements/TextAndImage.vue#L4
Best, Darek
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Fetch rich text editor data as JSON
Is there a way via the API to fetch rich text from a rich text editor in some kind of JSON structure rather than as parsed HTML? Since we would like to do some custom parsing it would be smoother than to parse a HTML string.
Hey Joakim.
Not entirely sure what exactly you're trying to do.
RTE in Heartcore returns a string containing HTML code e.g:
and if you try to render it on the frontend as a string you'll get everything including the HTML tags.
You'll need to specify in your code that it's not a normal text string.
In Vue you can do this - https://www.geeksforgeeks.org/vue-js-v-html-directive/
Docs - https://github.com/umbraco/Umbraco.Headless.StaticWebApp.Vue/blob/master/src/components/elements/TextAndImage.vue#L4
Best, Darek
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.