PluginProbe
Virtue/Ascend/Pinnacle Toolkit / 2.9
Virtue/Ascend/Pinnacle Toolkit v2.9
trunk 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.7 3.8 All 47 releases
virtue-toolkit / shortcodes / vimeo / vimeo_shortgen.js

vimeo_shortgen.js in Virtue/Ascend/Pinnacle Toolkit 2.9, at shortcodes/vimeo/vimeo_shortgen.js

38 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function() {
2 tinymce.create('tinymce.plugins.kadvimeo', {
3 init : function(ed, url) {
4 var t = this;
5 // Register commands
6 ed.addCommand('mcekadvimeo', function() {
7 ed.windowManager.open({
8 file: ajaxurl + '?action=kadvimeo_tinymce',
9 width : 350 + ed.getLang('button.delta_width', 0), // size of our window
10 height : 350 + ed.getLang('button.delta_height', 0), // size of our window
11 inline : 1
12 }, {
13 plugin_url : url
14 });
15 });
16
17 // Register buttons
18 ed.addButton('kadvimeo', {title : 'Insert Vimeo', cmd : 'mcekadvimeo', image: url + '/img/vimeo.png' });
19
20 },
21
22 getInfo : function() {
23 return {
24 longname : 'Insert Vimeo Video',
25 author : 'Benjamin Ritner',
26 authorurl : 'http://kadencethemes.com',
27 infourl : 'http://kadencethemes.com',
28 version : tinymce.majorVersion + "." + tinymce.minorVersion
29 };
30 }
31 });
32
33 // Register plugin
34 // first parameter is the button ID and must match ID elsewhere
35 // second parameter must match the first parameter of the tinymce.create() function above
36 tinymce.PluginManager.add('kadvimeo', tinymce.plugins.kadvimeo);
37
38 })();