Advertisement
sscovil

TinyMCE editor_plugin.js

Dec 10th, 2012
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     tinymce.create('tinymce.plugins.CompanyInfo', {
  3.         init : function(ed, url) {
  4.             ed.addCommand('mceCoInfo', function() {
  5.                 ed.windowManager.open({
  6.                     file : url + '/options.html',
  7.                     inline : 1
  8.                 }, {
  9.                     plugin_url : url
  10.                 });
  11.             });
  12.             ed.addButton('companyinfo', {
  13.                 title : 'Insert company info fields',
  14.                 cmd : 'mceCoInfo',
  15.                 image : url + '/companyinfo.png'
  16.             });
  17.         },
  18.         getInfo : function() {
  19.             return {
  20.                 longname : "Company Info Shortcode",
  21.                 author : 'Shaun Scovil',
  22.                 authorurl : 'http://shaunscovil.com/',
  23.                 infourl : 'http://shaunscovil.com/',
  24.                 version : "1.0"
  25.             };
  26.         }
  27.     });
  28.     tinymce.PluginManager.add('companyinfo', tinymce.plugins.CompanyInfo);
  29. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement