I have some links within Rich Text which are not resolving. I found the ResolveRichText()
extension method, but how can I use these extension methods in our views?
In the below code sub_copy
is my Rich Text field which consist of links:
@Model.Component.Fields["sub_copy"].ResolveRichText()
Do I need to add any namespace for this?
I'm getting the following compilation error:
CS1061: 'string' does not contain a definition for 'ResolveRichText' and no extension method 'ResolveRichText' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
ResolveRichText()
extension method?