Skip to content
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

nodeParser for richtext #9

Open
Victoria-Sirghii opened this issue Feb 5, 2024 · 1 comment
Open

nodeParser for richtext #9

Victoria-Sirghii opened this issue Feb 5, 2024 · 1 comment

Comments

@Victoria-Sirghii
Copy link

Brief bug description

Using nodeParser, it doesn't resolve rendering empty object references. The HTML element that I want to use remains wrapped in an object type. I use nodeParser in createRichTextHtmlResolver(nodeParser) to resolve rich text with components and items.

<object type="application/kenticocloud" data-type="item" data-rel="link" data-codename="image__test" data-sdk-resolved="1"><img src="https://miro.medium.com/v2/resize:fit:720/format:webp/1*xMuIOwjliGUPjkzukeWKfw.jpeg" alt="undefined">
</object>

Using nodeParser I expected to get rid of object type but it doen't happen.

Screenshot 2024-02-05 155801
image

@IvanKiral
Copy link
Contributor

Hey @Victoria-Sirghii,

thank you for raising this issue. I will try to look into that, I would like to ask you to check our new rich-text resolver https://github.com/kontent-ai/rich-text-resolver-js

It can transfer to HTML, which I believe is what you are looking for. Please check it and see whether it fits your needs. Let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants