endly_names: used_friendly_names
                    };
                    document.getElementById('evidence-upload-form').submit();

                    window.parent.postMessage({
                        mceAction: 'execCommand',
                        cmd: 'upload_and_insert',
                        value
                    }, origin);
                } catch(err) {
                    displayToastTop({type:'error', string:'You must provide a friendly name, caption, and evidence file', context:'form'