| 1 |
(function() { |
| 2 |
tinymce.create('tinymce.plugins.oscitasTabs', { |
| 3 |
init : function(ed, url) { |
| 4 |
ed.addButton('oscitastabs', { |
| 5 |
title : 'Tabs Shortcodes', |
| 6 |
image : url+'/icon.png', |
| 7 |
onclick : function() { |
| 8 |
ed.selection.setContent('[tabs]<br/>[tab title="Tab number 1" active="active"]Tab 1 content goes here.[/tab]<br/>[tab title="Tab number 2"]Tab 2 content goes here.[/tab]<br/>[tab title="Tab number 3"]Tab 3 content goes here.[/tab]<br/>[tab title="Tab number 4"]Tab 4 content goes here.[/tab]<br/>[/tabs]'); |
| 9 |
} |
| 10 |
}); |
| 11 |
}, |
| 12 |
createControl : function(n, cm) { |
| 13 |
return null; |
| 14 |
}, |
| 15 |
getInfo : function() { |
| 16 |
return { |
| 17 |
longname : "Tabs Shortcode", |
| 18 |
author : 'Oscitas Themes', |
| 19 |
authorurl : 'http://www.oscitasthemes.com/', |
| 20 |
infourl : 'http://www.oscitasthemes.com/', |
| 21 |
version : "1.0" |
| 22 |
}; |
| 23 |
} |
| 24 |
}); |
| 25 |
tinymce.PluginManager.add('oscitastabs', tinymce.plugins.oscitasTabs); |
| 26 |
})(); |
| 27 |
|