[ Index ] |
|
Code source de Seagull 0.6.1 |
1 /** 2 * $RCSfile: editor_plugin_src.js,v $ 3 * $Revision: 1.20 $ 4 * $Date: 2006/02/10 16:29:39 $ 5 * 6 * @author Moxiecode 7 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. 8 */ 9 10 /* Import plugin specific language pack */ 11 tinyMCE.importPluginLanguagePack('iespell', 'en,tr,cs,el,fr_ca,it,ko,sv,zh_cn,fr,de,pl,pt_br,nl,da,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk'); 12 13 var TinyMCE_IESpellPlugin = { 14 getInfo : function() { 15 return { 16 longname : 'IESpell (MSIE Only)', 17 author : 'Moxiecode Systems', 18 authorurl : 'http://tinymce.moxiecode.com', 19 infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_iespell.html', 20 version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion 21 }; 22 }, 23 24 /** 25 * Returns the HTML contents of the iespell control. 26 */ 27 getControlHTML : function(cn) { 28 // Is it the iespell control and is the brower MSIE. 29 if (cn == "iespell" && (tinyMCE.isMSIE && !tinyMCE.isOpera)) 30 return tinyMCE.getButtonHTML(cn, 'lang_iespell_desc', '{$pluginurl}/images/iespell.gif', 'mceIESpell'); 31 32 return ""; 33 }, 34 35 /** 36 * Executes the mceIESpell command. 37 */ 38 execCommand : function(editor_id, element, command, user_interface, value) { 39 // Handle ieSpellCommand 40 if (command == "mceIESpell") { 41 try { 42 var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension"); 43 ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement); 44 } catch (e) { 45 if (e.number == -2146827859) { 46 if (confirm(tinyMCE.getLang("lang_iespell_download", "", true))) 47 window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); 48 } else 49 alert("Error Loading ieSpell: Exception " + e.number); 50 } 51 52 return true; 53 } 54 55 // Pass to next handler in chain 56 return false; 57 } 58 }; 59 60 tinyMCE.addPlugin("iespell", TinyMCE_IESpellPlugin);
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 30 01:27:52 2007 | par Balluche grâce à PHPXref 0.7 |