2 * editor_plugin_src.js
\r
4 * Copyright 2009, Moxiecode Systems AB
\r
5 * Released under LGPL License.
\r
7 * License: http://tinymce.moxiecode.com/license
\r
8 * Contributing: http://tinymce.moxiecode.com/contributing
\r
11 (function(tinymce) {
\r
12 tinymce.create('tinymce.plugins.EmotionsPlugin', {
\r
13 init : function(ed, url) {
\r
14 // Register commands
\r
15 ed.addCommand('mceEmotion', function() {
\r
16 ed.windowManager.open({
\r
17 file : url + '/emotions.htm',
\r
18 width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
\r
19 height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
\r
27 ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
\r
30 getInfo : function() {
\r
32 longname : 'Emotions',
\r
33 author : 'Moxiecode Systems AB',
\r
34 authorurl : 'http://tinymce.moxiecode.com',
\r
35 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
\r
36 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
42 tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
\r