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" 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
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?
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.