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
12 tinymce.create('tinymce.plugins.IESpell', {
\r
13 init : function(ed, url) {
\r
21 // Register commands
\r
22 ed.addCommand('mceIESpell', function() {
\r
24 sp = new ActiveXObject("ieSpell.ieSpellExtension");
\r
25 sp.CheckDocumentNode(ed.getDoc().documentElement);
\r
27 if (e.number == -2146827859) {
\r
28 ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
\r
30 window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
\r
33 ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
\r
38 ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
\r
41 getInfo : function() {
\r
43 longname : 'IESpell (IE Only)',
\r
44 author : 'Moxiecode Systems AB',
\r
45 authorurl : 'http://tinymce.moxiecode.com',
\r
46 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
\r
47 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
53 tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
\r