| 1 |
(function () { |
| 2 |
"use strict"; |
| 3 |
tinymce.create('tinymce.plugins.wpstream_player', { |
| 4 |
init: function (ed, url) { |
| 5 |
ed.addButton('wpstream_player', { |
| 6 |
title: 'WpStream Player', |
| 7 |
image: url + '/button.png', |
| 8 |
onclick: function () { |
| 9 |
ed.selection.setContent('[wpstream_player id="Add here the live stream id or the video id" ][/wpstream_player]'); |
| 10 |
} |
| 11 |
}); |
| 12 |
}, |
| 13 |
createControl: function (n, cm) { |
| 14 |
return null; |
| 15 |
} |
| 16 |
}); |
| 17 |
tinymce.PluginManager.add('wpstream_player', tinymce.plugins.wpstream_player); |
| 18 |
})(); |
| 19 |
|
| 20 |
|
| 21 |
(function () { |
| 22 |
tinymce.create('tinymce.plugins.wpstream_list_products', { |
| 23 |
|
| 24 |
init: function (ed, url) { |
| 25 |
ed.addButton('wpstream_list_products', { |
| 26 |
title: 'WpStream List Products', |
| 27 |
image: url + '/list_media.png', |
| 28 |
onclick: function () { |
| 29 |
ed.selection.setContent('[wpstream_list_products media_number="No of media" product_type="Free Live Channel or Free Video"][/wpstream_list_products]'); |
| 30 |
} |
| 31 |
}); |
| 32 |
}, |
| 33 |
createControl: function (n, cm) { |
| 34 |
return null; |
| 35 |
} |
| 36 |
}); |
| 37 |
tinymce.PluginManager.add('wpstream_list_products', tinymce.plugins.wpstream_list_products); |
| 38 |
})(); |
| 39 |
|
| 40 |
|