Revision 4829,
1.2 KB
checked in by airton, 13 years ago
(diff) |
Ticket #2146 - Implementacao da funcionalidade de multiplas assinaturas - Adicao da biblioteca TinyMCE
|
-
Property svn:executable set to
*
|
Line | |
---|
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); |
---|
Note: See
TracBrowser
for help on using the repository browser.