jsToolBar.prototype.elements.extmedia = {
type: 'button',
title: 'External Media',
icon: 'index.php?pf=externalMedia/bt_video.png',
fn:{},
fncall:{},
open_url:'plugin.php?p=externalMedia&popup=1',
data:{},
popup: function() {
window.the_toolbar = this;
this.elements.extmedia.data = {};
var p_win = window.open(this.elements.extmedia.open_url,'dc_popup',
'alwaysRaised=yes,dependent=yes,toolbar=yes,height=500,width=760,'+
'menubar=no,resizable=yes,scrollbars=yes,status=no');
},
gethtml: function() {
var d = this.data;
if (d.m_object == '') { return false; }
var res = '
';
return res;
}
};
jsToolBar.prototype.elements.extmedia.fn.wiki = function() {
this.elements.extmedia.popup.call(this);
};
jsToolBar.prototype.elements.extmedia.fn.xhtml = function() {
this.elements.extmedia.popup.call(this);
};
jsToolBar.prototype.elements.extmedia.fn.markdown = function() {
this.elements.extmedia.popup.call(this);
};
jsToolBar.prototype.elements.extmedia.fncall.wiki = function() {
var html = this.elements.extmedia.gethtml();
this.encloseSelection('','',function() {
return '\n///html\n' + html + '\n///\n';
});
};
jsToolBar.prototype.elements.extmedia.fncall.xhtml = function() {
var html = this.elements.extmedia.gethtml();
this.encloseSelection('','',function() {
return html;
});
};
jsToolBar.prototype.elements.extmedia.fncall.markdown = function() {
var html = this.elements.extmedia.gethtml();
this.encloseSelection('','',function() {
return html;
});
};