Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video-details missing shortcode field and other fields #114

Open
alana314 opened this issue Oct 25, 2018 · 1 comment
Open

video-details missing shortcode field and other fields #114

alana314 opened this issue Oct 25, 2018 · 1 comment

Comments

@alana314
Copy link

On one of our post types, the brightcove modal works fine, and the video-details div has the fields Source, Video ID, Video Player, Auto Play, etc. and the Shortcode field. When you choose a video and click Insert Into Post, it enters in the shortcode into the value of the input field.
On another post type, when we open the Brightcove modal, all we see is Source and Video ID in the video-details div. There is no shortcode field, so in brightcove-admin.min.js in triggerPreviewMedia $('#shortcode').val() fails, and the shortcode is not inserted into the input field.

@alana314
Copy link
Author

As a workaround for now, I've added this javascript:

if($('#shortcode').length < 1)
        $('body').append('<input id="shortcode" type="hidden"></input>');

@jeffpaul jeffpaul added this to the Future Release milestone Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants