| 1 |
(function() { |
| 2 |
tinymce.create('tinymce.plugins.Embedplusstats_youtubeprefs', { |
| 3 |
init : function(ed, url) { |
| 4 |
var plep = new Image(); |
| 5 |
plep.src = url+'/../btn_embedplusstats.png'; |
| 6 |
ed.addButton('embedplusstats_youtubeprefs', { |
| 7 |
title : 'How much are your visitors actually watching the videos you post? Click here to start using this popular feature from EmbedPlus Labs ยป', |
| 8 |
onclick : function(ev) { |
| 9 |
window.open(epbasesite + '/dashboard/pro-easy-video-analytics.aspx?ref=wysiwygbutton&prokey=' + epprokey + '&domain=' + escape(window.location.toString()), '_blank'); |
| 10 |
} |
| 11 |
}); |
| 12 |
|
| 13 |
}, |
| 14 |
createControl : function(n, cm) { |
| 15 |
return null; |
| 16 |
}, |
| 17 |
getInfo : function() { |
| 18 |
return { |
| 19 |
longname : "Embedplus Video Analytics Dashboard", |
| 20 |
author : 'EmbedPlus', |
| 21 |
authorurl : 'http://www.embedplus.com/', |
| 22 |
infourl : 'http://www.embedplus.com/', |
| 23 |
version : epversion |
| 24 |
}; |
| 25 |
} |
| 26 |
}); |
| 27 |
tinymce.PluginManager.add('embedplusstats_youtubeprefs', tinymce.plugins.Embedplusstats_youtubeprefs); |
| 28 |
|
| 29 |
})(); |
| 30 |
|