1 |
|
tinyMCE.im
portPlugin
LanguagePa
ck('iespel
l');var Ti
nyMCE_IESp
ellPlugin=
{getInfo:f
unction(){
return{lon
gname:'IES
pell (MSIE
Only)',au
thor:'Moxi
ecode Syst
ems AB',au
thorurl:'h
ttp://tiny
mce.moxiec
ode.com',i
nfourl:'ht
tp://wiki.
moxiecode.
com/index.
php/TinyMC
E:Plugins/
iespell',v
ersion:tin
yMCE.major
Version+".
"+tinyMCE.
minorVersi
on}},getCo
ntrolHTML:
function(c
n){if(cn==
"iespell"&
&(tinyMCE.
isMSIE&&!t
inyMCE.isO
pera))retu
rn tinyMCE
.getButton
HTML(cn,'l
ang_iespel
l_desc','{
$pluginurl
}/images/i
espell.gif
','mceIESp
ell');retu
rn""},exec
Command:fu
nction(edi
tor_id,ele
ment,comma
nd,user_in
terface,va
lue){if(co
mmand=="mc
eIESpell")
{try{var i
eSpell=new
ActiveXOb
ject("ieSp
ell.ieSpel
lExtension
");ieSpell
.CheckDocu
mentNode(t
inyMCE.get
InstanceBy
Id(editor_
id).conten
tDocument.
documentEl
ement)}cat
ch(e){if(e
.number==-
2146827859
){if(confi
rm(tinyMCE
.getLang("
lang_iespe
ll_downloa
d","",true
)))window.
open('http
://www.ies
pell.com/d
ownload.ph
p','ieSpel
lDownload'
,'')}else
alert("Err
or Loading
ieSpell:
Exception
"+e.number
)}return t
rue}return
false}};t
inyMCE.add
Plugin("ie
spell",Tin
yMCE_IESpe
llPlugin);
|
|
1 |
|
(function(
){tinymce.
create('ti
nymce.plug
ins.IESpel
l',{init:f
unction(ed
,url){var
t=this,sp;
if(!tinymc
e.isIE)ret
urn;t.edit
or=ed;ed.a
ddCommand(
'mceIESpel
l',functio
n(){try{sp
=new Activ
eXObject("
ieSpell.ie
SpellExten
sion");sp.
CheckDocum
entNode(ed
.getDoc().
documentEl
ement);}ca
tch(e){if(
e.number==
-214682785
9){ed.wind
owManager.
confirm(ed
.getLang("
iespell.do
wnload"),f
unction(s)
{if(s)wind
ow.open('h
ttp://www.
iespell.co
m/download
.php','ieS
pellDownlo
ad','');})
;}else ed.
windowMana
ger.alert(
"Error Loa
ding ieSpe
ll: Except
ion "+e.nu
mber);}});
ed.addButt
on('iespel
l',{title:
'iespell.i
espell_des
c',cmd:'mc
eIESpell'}
);},getInf
o:function
(){return{
longname:'
IESpell (I
E Only)',a
uthor:'Mox
iecode Sys
tems AB',a
uthorurl:'
http://tin
ymce.moxie
code.com',
infourl:'h
ttp://wiki
.moxiecode
.com/index
.php/TinyM
CE:Plugins
/iespell',
version:ti
nymce.majo
rVersion+"
."+tinymce
.minorVers
ion};}});t
inymce.Plu
ginManager
.add('iesp
ell',tinym
ce.plugins
.IESpell);
})();
|