Content Delivery API RTE links with anchor
# help-with-umbraco
u
When having anchors i links in RTE, the content delivery output puts the anchor in a separate attribute (data-anchor).. is there any way to avoid this and have it as part of the href instead?
b
long time no see! 🙂 can't answer the original question, but if you have the chance to change this (and you are on 13.x), you can use blocks in RTE now, and that could provide a cleaner way to add links to the editor, as any setting/styling related properties can also be used there that are potentially available for other CTAs/links
u
Great to hear from you - it's been a while.. 😉 Well.. I will check this out to see if the editors can live with this instead... 😉 .. it also depends on how the output in the Delivery Api turns up..!
b
if not that, you can potentially use a property value converter for RTE, and process the outputed object, and move the anchor to the href, or whatever kind of output you need basically: https://docs.umbraco.com/umbraco-cms/customize-the-backoffice/property-editors/property-value-converters have not tried it with RTE fields specifically, but I think this would be the extension point to use if you only want to change what is outputted towards the content delivery API More specifically, you can you can use
IDeliveryApiPropertyValueConverter
3 Views