I have a use case where I have an entity reference field (field_video_reference) that references video nodes on the site, and those nodes use a video_embed_field module field to play videos from another site of ours. The WYSIWYG button is working just fine (I also has to write a custom codec for out video site), but I'd like to user-proof the functionality by auto-filling the Video URL field (in _video_filter_form) with a value from the referenced video node. In playing with hook_form_alter(), I see that the values of any other fields on the node are not available, so I would like to know if there might be another way to get the value of the field_video_reference field and add it to _video_filter_form.
Thanks.
Comments
Comment #1
minnur CreditAttribution: minnur at Chapter Three commentedThis sounds like something custom and unique case. Since both D7 and D8 modules using form API you should be able to achieve this buy using form_alter and overriding CKEditor plugins for your project.
Comment #2
wonder95 CreditAttribution: wonder95 commentedWell, as I said, it isn't available in hook_form_alter (or any other hook). or I would.
However, this wasn't a crucial need. so no problem.