Hi all,
A client of ours has a widget they need added to a content page - unfortunately no matter what i do the RTE strips out the important parts of the widget (the script and IDs) when trying to add it.
As such i thought a good work around would be instead to create a partial view macro and have that load in the RTE’s body of content instead. Unfortunately, even after several hours and more forum posts than i can count, i have not found a way to get the macro to work; every time i add it to the RTE i get “error loading partial view script”
What they needed added to the page isn’t complicated, just a couple lines of codes, but unfortunately with the upcoming elections here in the UK they need this sorted asap; and i’m all out of ideas.
Does anyone possibly know how to fix this? I’m working with umbraco 13.1.0
Also here’s the code i’m trying to add (it’s a publicly available widget so it’s fine for me to share it)
<noscript>
<a href="https://whocanivotefor.co.uk">Find election information at
<span aria-label="Who Can I Vote For">WhoCanIVoteFor.co.uk</span></a></noscript>
<div id="dc_wdiv" data-language="cy" data-candidates="false" aria-live="polite" role="region"></div>
<script type="text/javascript"
src="https://widget.wheredoivote.co.uk/wdiv.js">
</script>