4 * Copyright 2009, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://tinymce.moxiecode.com/license
8 * Contributing: http://tinymce.moxiecode.com/contributing
12 tinymce.create('tinymce.plugins.EmotionsPlugin', {
13 init : function(ed, url) {
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)),
27 ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
30 getInfo : function() {
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
42 tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);