annotate WebContent/jscripts/tiny_mce/plugins/print/editor_plugin_src.js @ 14:0f64de5fff5a

try to use javax.xml.bind.DatatypeConverter
author casties
date Wed, 21 Mar 2012 16:38:50 +0100
parents 0be9d53a6967
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
1 /**
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
2 * editor_plugin_src.js
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
3 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
4 * Copyright 2009, Moxiecode Systems AB
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
5 * Released under LGPL License.
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
6 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
7 * License: http://tinymce.moxiecode.com/license
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
8 * Contributing: http://tinymce.moxiecode.com/contributing
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
9 */
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
10
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
11 (function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
12 tinymce.create('tinymce.plugins.Print', {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
13 init : function(ed, url) {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
14 ed.addCommand('mcePrint', function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
15 ed.getWin().print();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
16 });
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
17
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
18 ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
19 },
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
20
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
21 getInfo : function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
22 return {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
23 longname : 'Print',
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
24 author : 'Moxiecode Systems AB',
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
25 authorurl : 'http://tinymce.moxiecode.com',
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
26 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
27 version : tinymce.majorVersion + "." + tinymce.minorVersion
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
28 };
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
29 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
30 });
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
31
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
32 // Register plugin
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
33 tinymce.PluginManager.add('print', tinymce.plugins.Print);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
34 })();