PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/static/scripts/tiny_mce/plugins/print/editor_plugin_src.js

http://n23.googlecode.com/
JavaScript | 31 lines | 20 code | 4 blank | 7 comment | 0 complexity | 5130892cf37e6ae4a3c296ca0725ca19 MD5 | raw file
 1/**
 2 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
 3 *
 4 * @author Moxiecode
 5 * @copyright Copyright Š 2004-2008, Moxiecode Systems AB, All rights reserved.
 6 */
 7
 8(function() {
 9	tinymce.create('tinymce.plugins.Print', {
10		init : function(ed, url) {
11			ed.addCommand('mcePrint', function() {
12				ed.getWin().print();
13			});
14
15			ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
16		},
17
18		getInfo : function() {
19			return {
20				longname : 'Print',
21				author : 'Moxiecode Systems AB',
22				authorurl : 'http://tinymce.moxiecode.com',
23				infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
24				version : tinymce.majorVersion + "." + tinymce.minorVersion
25			};
26		}
27	});
28
29	// Register plugin
30	tinymce.PluginManager.add('print', tinymce.plugins.Print);
31})();