source: branches/rsr.v5.1/web/app/plugins/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin_src.js @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 12 years ago

import initial

File size: 1.4 KB
Line 
1/**
2 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
3 *
4 * @author Moxiecode
5 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
6 */
7
8(function() {
9        tinymce.create('tinymce.plugins.IESpell', {
10                init : function(ed, url) {
11                        var t = this, sp;
12
13                        if (!tinymce.isIE)
14                                return;
15
16                        t.editor = ed;
17
18                        // Register commands
19                        ed.addCommand('mceIESpell', function() {
20                                try {
21                                        sp = new ActiveXObject("ieSpell.ieSpellExtension");
22                                        sp.CheckDocumentNode(ed.getDoc().documentElement);
23                                } catch (e) {
24                                        if (e.number == -2146827859) {
25                                                ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
26                                                        if (s)
27                                                                window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
28                                                });
29                                        } else
30                                                ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
31                                }
32                        });
33
34                        // Register buttons
35                        ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
36                },
37
38                getInfo : function() {
39                        return {
40                                longname : 'IESpell (IE Only)',
41                                author : 'Moxiecode Systems AB',
42                                authorurl : 'http://tinymce.moxiecode.com',
43                                infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
44                                version : tinymce.majorVersion + "." + tinymce.minorVersion
45                        };
46                }
47        });
48
49        // Register plugin
50        tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
51})();
Note: See TracBrowser for help on using the repository browser.