Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- tinymce.create('tinymce.plugins.CompanyInfo', {
- init : function(ed, url) {
- ed.addCommand('mceCoInfo', function() {
- ed.windowManager.open({
- file : url + '/options.html',
- inline : 1
- }, {
- plugin_url : url
- });
- });
- ed.addButton('companyinfo', {
- title : 'Insert company info fields',
- cmd : 'mceCoInfo',
- image : url + '/companyinfo.png'
- });
- },
- getInfo : function() {
- return {
- longname : "Company Info Shortcode",
- author : 'Shaun Scovil',
- authorurl : 'http://shaunscovil.com/',
- infourl : 'http://shaunscovil.com/',
- version : "1.0"
- };
- }
- });
- tinymce.PluginManager.add('companyinfo', tinymce.plugins.CompanyInfo);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement