I'm trying to make a simple button that uses the default pop-up form, similar to what the URL and IMG forms do.
Basically I would like my output to be
[video:X]
Where X is the url of a video from a site like youtube or google.
So far, I've come up with this
js:
var form = [
{name: 'video:', title: 'URL of Video'},
];
eDefTagDialog('', form, 'Insert/edit video', 'OK');
of course that returns the following
< video:="http://youtube.com/watch?v=fmOE0V8-me8"></>
Any suggestions on what I can do to get this to work?
Comments
Comment #1
Kirk commentedFYI, I am trying to do this so i can use the video filter module
http://drupal.org/project/video_filter
Comment #2
ufku commentedComment #3
Kirk commentedKiller, thanks a lot!
Comment #4
ufku commented