mirror of
https://github.com/e107inc/e107.git
synced 2025-10-12 21:45:11 +02:00
Updated TinyMce to 3.2.5.
First incarnation of the admin configuration page added. Language file still to come.
This commit is contained in:
@@ -1 +1 @@
|
||||
tinyMCE.importPluginLanguagePack('iespell');var TinyMCE_IESpellPlugin={getInfo:function(){return{longname:'IESpell (MSIE Only)',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_iespell.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion}},getControlHTML:function(cn){if(cn=="iespell"&&(tinyMCE.isMSIE&&!tinyMCE.isOpera))return tinyMCE.getButtonHTML(cn,'lang_iespell_desc','{$pluginurl}/images/iespell.gif','mceIESpell');return""},execCommand:function(editor_id,element,command,user_interface,value){if(command=="mceIESpell"){try{var ieSpell=new ActiveXObject("ieSpell.ieSpellExtension");ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement)}catch(e){if(e.number==-2146827859){if(confirm(tinyMCE.getLang("lang_iespell_download","",true)))window.open('http://www.iespell.com/download.php','ieSpellDownload','')}else alert("Error Loading ieSpell: Exception "+e.number)}return true}return false}};tinyMCE.addPlugin("iespell",TinyMCE_IESpellPlugin);
|
||||
(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})();
|
@@ -1,58 +1,51 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js,v 1.1 2006-12-22 18:45:29 e107coders Exp $
|
||||
* $Id: editor_plugin_src.js,v 1.2 2009-07-01 02:52:08 e107coders Exp $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright <20> 2004-2006, Moxiecode Systems AB, All rights reserved.
|
||||
* @copyright Copyright <20> 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
/* Import plugin specific language pack */
|
||||
tinyMCE.importPluginLanguagePack('iespell');
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.IESpell', {
|
||||
init : function(ed, url) {
|
||||
var t = this, sp;
|
||||
|
||||
var TinyMCE_IESpellPlugin = {
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'IESpell (MSIE Only)',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://tinymce.moxiecode.com/tinymce/docs/plugin_iespell.html',
|
||||
version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
|
||||
};
|
||||
},
|
||||
if (!tinymce.isIE)
|
||||
return;
|
||||
|
||||
/**
|
||||
* Returns the HTML contents of the iespell control.
|
||||
*/
|
||||
getControlHTML : function(cn) {
|
||||
// Is it the iespell control and is the brower MSIE.
|
||||
if (cn == "iespell" && (tinyMCE.isMSIE && !tinyMCE.isOpera))
|
||||
return tinyMCE.getButtonHTML(cn, 'lang_iespell_desc', '{$pluginurl}/images/iespell.gif', 'mceIESpell');
|
||||
t.editor = ed;
|
||||
|
||||
return "";
|
||||
},
|
||||
// Register commands
|
||||
ed.addCommand('mceIESpell', function() {
|
||||
try {
|
||||
sp = new ActiveXObject("ieSpell.ieSpellExtension");
|
||||
sp.CheckDocumentNode(ed.getDoc().documentElement);
|
||||
} catch (e) {
|
||||
if (e.number == -2146827859) {
|
||||
ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
|
||||
if (s)
|
||||
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
||||
});
|
||||
} else
|
||||
ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Executes the mceIESpell command.
|
||||
*/
|
||||
execCommand : function(editor_id, element, command, user_interface, value) {
|
||||
// Handle ieSpellCommand
|
||||
if (command == "mceIESpell") {
|
||||
try {
|
||||
var ieSpell = new ActiveXObject("ieSpell.ieSpellExtension");
|
||||
ieSpell.CheckDocumentNode(tinyMCE.getInstanceById(editor_id).contentDocument.documentElement);
|
||||
} catch (e) {
|
||||
if (e.number == -2146827859) {
|
||||
if (confirm(tinyMCE.getLang("lang_iespell_download", "", true)))
|
||||
window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
|
||||
} else
|
||||
alert("Error Loading ieSpell: Exception " + e.number);
|
||||
}
|
||||
// Register buttons
|
||||
ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
|
||||
},
|
||||
|
||||
return true;
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'IESpell (IE Only)',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Pass to next handler in chain
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
tinyMCE.addPlugin("iespell", TinyMCE_IESpellPlugin);
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
|
||||
})();
|
Reference in New Issue
Block a user