--- /dev/null
+/**\r
+ * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $\r
+ *\r
+ * @author Moxiecode\r
+ * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.\r
+ */\r
+\r
+(function() {\r
+ tinymce.create('tinymce.plugins.IESpell', {\r
+ init : function(ed, url) {\r
+ var t = this, sp;\r
+\r
+ if (!tinymce.isIE)\r
+ return;\r
+\r
+ t.editor = ed;\r
+\r
+ // Register commands\r
+ ed.addCommand('mceIESpell', function() {\r
+ try {\r
+ sp = new ActiveXObject("ieSpell.ieSpellExtension");\r
+ sp.CheckDocumentNode(ed.getDoc().documentElement);\r
+ } catch (e) {\r
+ if (e.number == -2146827859) {\r
+ ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {\r
+ if (s)\r
+ window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');\r
+ });\r
+ } else\r
+ ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);\r
+ }\r
+ });\r
+\r
+ // Register buttons\r
+ ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});\r
+ },\r
+\r
+ getInfo : function() {\r
+ return {\r
+ longname : 'IESpell (IE Only)',\r
+ author : 'Moxiecode Systems AB',\r
+ authorurl : 'http://tinymce.moxiecode.com',\r
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',\r
+ version : tinymce.majorVersion + "." + tinymce.minorVersion\r
+ };\r
+ }\r
+ });\r
+\r
+ // Register plugin\r
+ tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);\r
+})();
\ No newline at end of file