I’m trying to embed a booking function from eventbrite website into an entry using an RTE field. The embed code uses javascript to work but when I paste the code into the source window of the field, it is stripped out immediately. Is there a way for it to allow this as I have had to resort to creating another text area field which then renders it properly?
Hi, I have had the same problem; the RTE does some rewriting when you switch from code view back to the WYSIWYG. This happens in the built-in RTE and in the 3rd party one we have based on CKeditor. Probably trying to be helpful…
Two workarounds: ‘save and close’ rather than ‘save’ from the code window (don’t let it go back to the WYSIWYG); and, add a text-field to the template that doesn’t use the RTE just after the RTE field. The former method means that any time you edit the post content, you’ll have to re-add the script.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.