Mercurial > public > sg101
comparison static/js/tiny_mce/plugins/emotions/editor_plugin_src.js @ 312:88b2b9cb8c1f
Fixing #142; cut over to the django.contrib.staticfiles app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 02:56:10 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
311:b1c39788e511 | 312:88b2b9cb8c1f |
---|---|
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); |