Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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(tinymce) {
12
	tinymce.create('tinymce.plugins.EmotionsPlugin', {
13
		init : function(ed, url) {
14
			// Register commands
15
			ed.addCommand('mceEmotion', function() {
16
				ed.windowManager.open({
17
					file : url + '/emotions.htm',
18
					width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
19
					height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
20
					inline : 1
21
				}, {
22
					plugin_url : url
23
				});
24
			});
25
 
26
			// Register buttons
27
			ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
28
		},
29
 
30
		getInfo : function() {
31
			return {
32
				longname : 'Emotions',
33
				author : 'Moxiecode Systems AB',
34
				authorurl : 'http://tinymce.moxiecode.com',
35
				infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
36
				version : tinymce.majorVersion + "." + tinymce.minorVersion
37
			};
38
		}
39
	});
40
 
41
	// Register plugin
42
	tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
43
})(tinymce);