Video filter module is a highly flexible filter module that allows embedding any type of video in your site content.
You can embed a video from any of the following services: Blip.tv, Capped.tv, College Humor, DailyMotion, Eyespot, Flickr Video, Flickr Slideshows, Gametrailers, Gamevideos, Google Video, Metacafe, Myspace, Picasa, Revver, Slideshare, Tangle, Vimeo, YouTube.
Note that, you must enable video filter for your content's input format in order to see the embedded video.
js:
var S = E.getSelection();
var M = S.match(new RegExp('^\\[video:([^\\] ]*)([^\\]]*)]$')) || ['', '', ''];
var A = {};
M[2] && $.each(M[2].split(' '), function(i, val) {if (val) {
var p = val.split(':');
p[0] && p[1] && (A[p[0]] = p[1]);
}});
var form = [
{name: 'video', title: 'Video URL', value: M[1] || 'http://youtube.com/watch?v=', required: true, attributes: {size: 32}},
{name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}, value: A.width || ''},
{name: 'height', attributes: {size: 3}, value: A.height || ''}
];
E.tagDialog('video', form, {title: 'Insert/edit video', submit: function(tag, form) {
for (var el, i = 0, arr = []; el = form.elements[i]; i++) {
if (el.name.substr(0, 5) == 'attr_' && el.value) {
arr.push(el.name.substr(5) +':'+ el.value);
}
}
E.replaceSelection('['+ arr.join(' ') +']');
}});
Hi! I just wonder how to
Hi!
I just wonder how to insert the button code so I get this filter working with BUeditor? I'm using Drupal 7.
Thanks,
Home » Administer » Site
Home » Administer » Site configuration » BUEditor
Add the code directly there.
Alternatively you can add it in a file in your directory; however that is completely unnecessary so I won't bother.
Hi. How to remove "width"
Hi.
How to remove "width" and "height" from form?
Change the form variable
Change the form variable to:
var form = [{name: 'video', title: 'Video URL', value: M[1] || 'http://youtube.com/watch?v=', required: true, attributes: {size: 32}}
];
and how i can use "class" for
and how i can use "class" for this code?
Hi, I have modified the vidéo
Hi,
I have modified the vidéo code to hide width and height, and to remove the youtube "precode" (). I would like to know if "my code" is still good (it works, but I want to be shure of everything!). I think it was confusing to have this defaut adress in the pop-up box (
http://youtube.com/watch?v=).Thanks.
js:var S = E.getSelection();
var M = S.match(new RegExp('^\\[video:([^\\] ]*)([^\\]]*)]$')) || ['', '', ''];
var A = {};
M[2] && $.each(M[2].split(' '), function(i, val) {if (val) {
var p = val.split(':');
p[0] && p[1] && (A[p[0]] = p[1]);
}});
var form = [
{name: 'video', title: 'Video URL', value: M[1] || '', required: true, attributes: {size: 32}},
];
E.tagDialog('video', form, {title: 'Insert/edit video', submit: function(tag, form) {
for (var el, i = 0, arr = []; el = form.elements[i]; i++) {
if (el.name.substr(0, 5) == 'attr_' && el.value) {
arr.push(el.name.substr(5) +':'+ el.value);
}
}
E.replaceSelection('['+ arr.join(' ') +']');
}});
Hi, I would like to know how
Hi,
I would like to know how add only one new button (or to replace one button by one of my own). In this case it would be for the video format. Thanks
hi how do I turn off
hi how do I turn off autoplayback?