Default fallback inline resolver
Simply007 opened this issue · 2 comments
Motivation
Currently, if you want to have an inline resolver for rich text elements, it is required to register it for all content models. It would be great to have some approach to reduce this necessity.
Proposed solution
Allow defining a default inline rich text resolver as a fallback when no other resolver is used.
Additional context
Proposal #108
I might find another solution for this. It is possible to extend the TemplateConfig if not previous resolvers find an appropriate resolution.
I have created a showcase for that in the Springboot application:
https://github.com/Kentico/kontent-java-packages/blob/default-inline-richtext-resolver/sample-app-spring-boot/src/main/java/kentico/kontent/delivery/sample/dancinggoat/springboot/KontentConfiguration.java#L60
Default resolver for template engine covered in https://github.com/Kentico/kontent-java-packages/wiki/Rich-text-resolution#completely-custom-template-configuration-ie-default-fallback-rich-text-element-resolver