filtertube
Categories
Component ID
1072620
Component name
filtertube
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This Module is an Input Filter allowing Users to easily add YouTube videos into their content. Using YouTube's “new†h.246 video playback embed method. Not using SWF/flv Object embed! This ensures playback across a variety of more current devices: mobile webkit/android.
Features
- playback size controls
- user configureable playback options (autoplay, custom title overlay)
- admin, override of user controls abilities
- admin, ratio widget for custom sizing help
- per input format settings
BUeditor code sample
js:
var S = E.getSelection();
var M = S.match(new RegExp('^\[url(?:=([^\]]*))?]((?:.|[
])*)\[/url]$')) || ['', '', ''];
var form = [
{name: 'href', title: 'YouTube link', value: M[1] , suffix: E.imce.button('attr_href'), required: true},
];
var opt = {title: 'Insert YouTube Filter'};
opt.submit = function(tag, form) {
var el = form.elements;
var url = el['attr_href'].value;
E.replaceSelection('[youtube:'+ url +']');
};
E.tagDialog('a', form, opt);
