annotate media/js/tiny_mce/plugins/print/editor_plugin_src.js @ 96:93d9e74a471e

Forums: added forum post counts for each user in the user profile.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Sep 2009 18:43:08 +0000
parents a5b4c5ce0658
children 149c3567fec1
rev   line source
bgneal@45 1 /**
bgneal@45 2 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
bgneal@45 3 *
bgneal@45 4 * @author Moxiecode
bgneal@45 5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
bgneal@45 6 */
bgneal@45 7
bgneal@45 8 (function() {
bgneal@45 9 tinymce.create('tinymce.plugins.Print', {
bgneal@45 10 init : function(ed, url) {
bgneal@45 11 ed.addCommand('mcePrint', function() {
bgneal@45 12 ed.getWin().print();
bgneal@45 13 });
bgneal@45 14
bgneal@45 15 ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
bgneal@45 16 },
bgneal@45 17
bgneal@45 18 getInfo : function() {
bgneal@45 19 return {
bgneal@45 20 longname : 'Print',
bgneal@45 21 author : 'Moxiecode Systems AB',
bgneal@45 22 authorurl : 'http://tinymce.moxiecode.com',
bgneal@45 23 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
bgneal@45 24 version : tinymce.majorVersion + "." + tinymce.minorVersion
bgneal@45 25 };
bgneal@45 26 }
bgneal@45 27 });
bgneal@45 28
bgneal@45 29 // Register plugin
bgneal@45 30 tinymce.PluginManager.add('print', tinymce.plugins.Print);
bgneal@45 31 })();