Trying to submit a field value from a popup modal window to my WordPress parent window meta-box.
On my add post page I have a metabox with a field type 'text'.
The id of my 'text' field type input is 'tumble2_kaltura-video'
Next to the metabox text field is a button link which opens up a modal box:
Once I select my video in the modal box, there is a submit button that when clicked will send out a shortcode. Normally this shortcode is sent to the wp-editor
What script do I need to use in order to send the shortcode from the modal box to the metabox text field 'tumble2_kaltura-video'?
Here is my kaltura code that is 'in charge' of normally sending the value to the editor. Need to change something in here to target my metabox instead.
I tried pasting my code in here instead of gist, but no matter how I formatted it, it was always messed up.