JS embed broke side text


I was trying to add a calendar feed to the side text on our program. I pasted the code in, saved it, and it worked. When I went in to tweak it a little, I found that things had gone all wonky:


This is the code I entered:

<script src="https://www.trumba.com/scripts/spuds.js"></script> <script type="text/javascript"> $Trumba.addSpud({ webName: "spls-calendar", spudType : "upcoming", teaserBase : "http://www.spokanelibrary.org/calendar/", url: { } }); </script>


Looks like an interaction between that code you pasted and the JavaScript WYSIWYG text editor control on the page. :frowning:

This is another one that could be modified with a database query, unfortunately I can’t think of a way to bypass the editor control easily.

I’m strongly considering moving to a Markdown/CommonMark based text field for next year which would resolve this problem.


Ha! Of course it is!

You think I could clear that JavaScript code I pasted into the editor with a database query to get things back to normal? If yes, any slight hint on the direction I should steer the database guy to get that to happen?


That’s the approach I’d take. This will be in the Programs table, I believe the left text is HTML3 and the right text is in HTML4.


Thanks, HP. I’ll venture down that path on Monday.


Success. Clearing that code fixed it right up.