Try our conversational search powered by Generative AI!

CData issue when embedding a widget on the Episerver 6

Vote:
 

Hi Team,

We get an error when we try to implement the Custom Code of the widget on our site through EpiServer CMS (Version 6).

We want to implement this widget on the right-hand side of the page we’re trying to display the Met office weather warning widget.

The code for the widget from the met office website is:

http://www.metoffice.gov.uk/public/weather/warnings/">Weather warnings>

http://www.metoffice.gov.uk/public/weather/warnings" target="_blank">Weather warnings generated by the http://www.metoffice.gov.uk/public/weather/components'>Met Office Weather Widget

Once we paste the code into the html editor on the composer block, it adds a //[![CDATA]]// tag around the part of the widget and stops it from displaying:

http://www.metoffice.gov.uk/public/weather/warnings/">Weather warnings

http://www.metoffice.gov.uk/public/weather/warnings" target="_blank">Weather warnings generated by the http://www.metoffice.gov.uk/public/weather/components">Met Office Weather Widget

Why is this happening and what can we do to get this showing?

Thanks,

Vaibhav Nadpurohit

#176334
Mar 16, 2017 10:08
Vote:
 

Pasting SCRIPT into a TinyMCE HTML editor is usually not a good idea.

You could have plain textarea string property instead or add a simple Dynamic Content plugin that has a textarea field. Both these options will keep the format of the script pasted.

#178100
May 01, 2017 22:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.