+++ /dev/null
-/**\r
- * editor_plugin_src.js\r
- *\r
- * Copyright 2009, Moxiecode Systems AB\r
- * Released under LGPL License.\r
- *\r
- * License: http://tinymce.moxiecode.com/license\r
- * Contributing: http://tinymce.moxiecode.com/contributing\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