Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the included input filter, brightcove videos are only displayed the first time the text field is saved.
Videos are not displayed on subsequent views of the field, and a javascript error 'Uncaught ReferenceError: brightcove is not defined' is displayed in the console.
Initial patch to come.
Comment | File | Size | Author |
---|---|---|---|
#2 | video_embed_field-brightcove_error_input_filter-2693925-1-7.x.patch | 897 bytes | jeffam |
Comments
Comment #2
jeffamHere's the (admittedly sub-optimal) patch. I'm adding it here in its current state so that I can refer to it from make files.
The main issue is that it will include the inline script from `//admin.brightcove.com/js/BrightcoveExperiences.js` for every inline video. In practice, this doesn't seem to cause much of a problem, but ideally there would be a bit of js that places the script in the head or footer of the page and only does that once.