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

Feat: Improve RichText element rendering experience #231

Open
Enngage opened this issue Aug 20, 2020 · 1 comment
Open

Feat: Improve RichText element rendering experience #231

Enngage opened this issue Aug 20, 2020 · 1 comment

Comments

@Enngage
Copy link
Member

Enngage commented Aug 20, 2020

SDK currently enables developers to choose either IRichTextContent or string in strongly typed models. There are situations where a combination of both needs to be used.

One possible solution would be to extend IRichTextContent with additional properties (e.g. modular_content, links and other properties from response) as well as methods for resolving HTML using registered inline resolvers (e.g. override ToString methods for IRichTextContent and potentially also individual IRichTextBlock blocks)

@petrsvihlik
Copy link
Contributor

petrsvihlik commented Aug 20, 2020

another place I know of where such functionality could be useful: https://github.com/alanta/Kontent.Statiq/blob/ee3b64f9f7e25ccd589b7d3328e04fd7d2043e0c/Kontent.Statiq.Tests/PipelineExecutionHelpers.cs#L32 (ping @alanta)

we need to do a spike first to find out what approach shall we take

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

No branches or pull requests

3 participants