2 * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
\r
5 * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
\r
8 /* Import plugin specific language pack */
\r
9 tinyMCE.importPluginLanguagePack('iespell');
\r
11 var TinyMCE_IESpellPlugin = {
\r
12 getInfo : function() {
\r
14 longname : 'IESpell (MSIE Only)',
\r
15 author : 'Moxiecode Systems AB',
\r
16 authorurl : 'http://tinymce.moxiecode.com',
\r
17 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
\r
18 version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
\r
23 * Returns the HTML contents of the iespell control.
\r
25 getControlHTML : function(cn) {
\r
26 // Is it the iespell control and is the brower MSIE.
\r
27 if (cn == "iespell" && (tinyMCE.isMSIE && !tinyMCE.isOpera))
\r
28 return tinyMCE.getButtonHTML(cn, 'lang_iespell_desc', '{$pluginurl}/images/iespell.gif', 'mceIESpell');
\r
34 * Executes the mceIESpell command.
\r
36 execCommand : function(editor_id, element, command, user_interface, value) {
\r
37 // Handle ieSpellCommand
\r
38 if (command == "mceIESpell") {
\r
40 var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
\r
41 ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
\r
43 if (e.number == -2146827859) {
\r
44 if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
\r
45 window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
\r
47 alert("Error Loading ieSpell: Exception " + e.number);
\r
53 // Pass to next handler in chain
\r
58 tinyMCE.addPlugin("iespell", TinyMCE_IESpellPlugin);
\r