diff options
| author | hukl <contact@smyck.org> | 2009-02-17 21:54:39 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-17 21:54:39 +0100 |
| commit | f61b5b0597e0c25f084ee67d402f12a43a7a9947 (patch) | |
| tree | 3b4c3f9f38637f1a7ecf703ece4fd3bc4c6e2934 /public/javascripts/tiny_mce/plugins/iespell | |
| parent | 3d3b786cc43266f6292f5edd25733dbb9bd6ed06 (diff) | |
added tinymce editor for body area of pages
Diffstat (limited to 'public/javascripts/tiny_mce/plugins/iespell')
| -rwxr-xr-x | public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js | 1 | ||||
| -rwxr-xr-x | public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js b/public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js new file mode 100755 index 0000000..06dae75 --- /dev/null +++ b/public/javascripts/tiny_mce/plugins/iespell/editor_plugin.js | |||
| @@ -0,0 +1 @@ | |||
| (function(){tinymce.create('tinymce.plugins.IESpell',{init:function(ed,url){var t=this,sp;if(!tinymce.isIE)return;t.editor=ed;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);}});ed.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);})(); \ No newline at end of file | |||
diff --git a/public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js b/public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js new file mode 100755 index 0000000..a68f69a --- /dev/null +++ b/public/javascripts/tiny_mce/plugins/iespell/editor_plugin_src.js | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | (function() { | ||
| 9 | tinymce.create('tinymce.plugins.IESpell', { | ||
| 10 | init : function(ed, url) { | ||
| 11 | var t = this, sp; | ||
| 12 | |||
| 13 | if (!tinymce.isIE) | ||
| 14 | return; | ||
| 15 | |||
| 16 | t.editor = ed; | ||
| 17 | |||
| 18 | // Register commands | ||
| 19 | ed.addCommand('mceIESpell', function() { | ||
| 20 | try { | ||
| 21 | sp = new ActiveXObject("ieSpell.ieSpellExtension"); | ||
| 22 | sp.CheckDocumentNode(ed.getDoc().documentElement); | ||
| 23 | } catch (e) { | ||
| 24 | if (e.number == -2146827859) { | ||
| 25 | ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) { | ||
| 26 | if (s) | ||
| 27 | window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); | ||
| 28 | }); | ||
| 29 | } else | ||
| 30 | ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number); | ||
| 31 | } | ||
| 32 | }); | ||
| 33 | |||
| 34 | // Register buttons | ||
| 35 | ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'}); | ||
| 36 | }, | ||
| 37 | |||
| 38 | getInfo : function() { | ||
| 39 | return { | ||
| 40 | longname : 'IESpell (IE Only)', | ||
| 41 | author : 'Moxiecode Systems AB', | ||
| 42 | authorurl : 'http://tinymce.moxiecode.com', | ||
| 43 | infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell', | ||
| 44 | version : tinymce.majorVersion + "." + tinymce.minorVersion | ||
| 45 | }; | ||
| 46 | } | ||
| 47 | }); | ||
| 48 | |||
| 49 | // Register plugin | ||
| 50 | tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell); | ||
| 51 | })(); \ No newline at end of file | ||
