PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/print/editor_plugin_src.js

#
JavaScript | 34 lines | 20 code | 4 blank | 10 comment | 0 complexity | f11547aa114df69b35df319003105e11 MD5 | raw file
 1/**
 2 * editor_plugin_src.js
 3 *
 4 * Copyright 2009, Moxiecode Systems AB
 5 * Released under LGPL License.
 6 *
 7 * License: http://tinymce.moxiecode.com/license
 8 * Contributing: http://tinymce.moxiecode.com/contributing
 9 */
10
11(function() {
12	tinymce.create('tinymce.plugins.Print', {
13		init : function(ed, url) {
14			ed.addCommand('mcePrint', function() {
15				ed.getWin().print();
16			});
17
18			ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
19		},
20
21		getInfo : function() {
22			return {
23				longname : 'Print',
24				author : 'Moxiecode Systems AB',
25				authorurl : 'http://tinymce.moxiecode.com',
26				infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
27				version : tinymce.majorVersion + "." + tinymce.minorVersion
28			};
29		}
30	});
31
32	// Register plugin
33	tinymce.PluginManager.add('print', tinymce.plugins.Print);
34})();