comparison static/js/tiny_mce/plugins/print/editor_plugin_src.js @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents
children
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
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 })();