| 1 |
(function() { |
| 2 |
|
| 3 |
tinymce.create('tinymce.plugins.Embedplus_youtubeprefs', { |
| 4 |
init : function(ed, url) { |
| 5 |
var plep = new Image(); |
| 6 |
plep.src = url+'/../images/btnprefsoff.png'; |
| 7 |
ed.addButton('embedplus_youtubeprefs', { |
| 8 |
title : "YouTube Settings Page Shortcut (Opens new tab to leave this editor tab intact)", |
| 9 |
onclick : function(ev) { |
| 10 |
window.open(eppluginadminurl); |
| 11 |
} |
| 12 |
}); |
| 13 |
}, |
| 14 |
createControl : function(n, cm) { |
| 15 |
return null; |
| 16 |
}, |
| 17 |
getInfo : function() { |
| 18 |
return { |
| 19 |
longname : "YouTube Settings", |
| 20 |
author : 'EmbedPlus', |
| 21 |
authorurl : 'http://www.embedplus.com/', |
| 22 |
infourl : 'http://www.embedplus.com/', |
| 23 |
version : epversion |
| 24 |
}; |
| 25 |
} |
| 26 |
}); |
| 27 |
|
| 28 |
tinymce.PluginManager.add('embedplus_youtubeprefs', tinymce.plugins.Embedplus_youtubeprefs); |
| 29 |
|
| 30 |
})(); |