2 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
\r
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
\r
9 tinymce.create('tinymce.plugins.EmotionsPlugin', {
\r
10 init : function(ed, url) {
\r
11 // Register commands
\r
12 ed.addCommand('mceEmotion', function() {
\r
13 ed.windowManager.open({
\r
14 file : url + '/emotions.htm',
\r
15 width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
\r
16 height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
\r
24 ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
\r
27 getInfo : function() {
\r
29 longname : 'Emotions',
\r
30 author : 'Moxiecode Systems AB',
\r
31 authorurl : 'http://tinymce.moxiecode.com',
\r
32 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
\r
33 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
39 tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
\r