annotate media/js/tiny_mce/plugins/print/editor_plugin_src.js @ 200:7d3e5aca095f

Fixing #73: comments no longer getting adding to web page on submit.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Apr 2010 19:41:13 +0000
parents 149c3567fec1
children
rev   line source
bgneal@45 1 /**
bgneal@183 2 * editor_plugin_src.js
bgneal@45 3 *
bgneal@183 4 * Copyright 2009, Moxiecode Systems AB
bgneal@183 5 * Released under LGPL License.
bgneal@183 6 *
bgneal@183 7 * License: http://tinymce.moxiecode.com/license
bgneal@183 8 * Contributing: http://tinymce.moxiecode.com/contributing
bgneal@45 9 */
bgneal@45 10
bgneal@45 11 (function() {
bgneal@45 12 tinymce.create('tinymce.plugins.Print', {
bgneal@45 13 init : function(ed, url) {
bgneal@45 14 ed.addCommand('mcePrint', function() {
bgneal@45 15 ed.getWin().print();
bgneal@45 16 });
bgneal@45 17
bgneal@45 18 ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
bgneal@45 19 },
bgneal@45 20
bgneal@45 21 getInfo : function() {
bgneal@45 22 return {
bgneal@45 23 longname : 'Print',
bgneal@45 24 author : 'Moxiecode Systems AB',
bgneal@45 25 authorurl : 'http://tinymce.moxiecode.com',
bgneal@45 26 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
bgneal@45 27 version : tinymce.majorVersion + "." + tinymce.minorVersion
bgneal@45 28 };
bgneal@45 29 }
bgneal@45 30 });
bgneal@45 31
bgneal@45 32 // Register plugin
bgneal@45 33 tinymce.PluginManager.add('print', tinymce.plugins.Print);
bgneal@45 34 })();