1 |
|
tinyMCE.im
portPlugin
LanguagePa
ck('emotio
ns');var T
inyMCE_Emo
tionsPlugi
n={getInfo
:function(
){return{l
ongname:'E
motions',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
/emotions'
,version:t
inyMCE.maj
orVersion+
"."+tinyMC
E.minorVer
sion}},get
ControlHTM
L:function
(cn){switc
h(cn){case
"emotions"
:return ti
nyMCE.getB
uttonHTML(
cn,'lang_e
motions_de
sc','{$plu
ginurl}/im
ages/emoti
ons.gif','
mceEmotion
')}return"
"},execCom
mand:funct
ion(editor
_id,elemen
t,command,
user_inter
face,value
){switch(c
ommand){ca
se"mceEmot
ion":var t
emplate=ne
w Array();
template['
file']='..
/../plugin
s/emotions
/emotions.
htm';templ
ate['width
']=250;tem
plate['hei
ght']=160;
template['
width']+=t
inyMCE.get
Lang('lang
_emotions_
delta_widt
h',0);temp
late['heig
ht']+=tiny
MCE.getLan
g('lang_em
otions_del
ta_height'
,0);tinyMC
E.openWind
ow(templat
e,{editor_
id:editor_
id,inline:
"yes"});re
turn true}
return fal
se}};tinyM
CE.addPlug
in('emotio
ns',TinyMC
E_Emotions
Plugin);
|
|
1 |
|
(function(
){tinymce.
create('ti
nymce.plug
ins.Emotio
nsPlugin',
{init:func
tion(ed,ur
l){ed.addC
ommand('mc
eEmotion',
function()
{ed.window
Manager.op
en({file:u
rl+'/emoti
ons.htm',w
idth:250+p
arseInt(ed
.getLang('
emotions.d
elta_width
',0)),heig
ht:160+par
seInt(ed.g
etLang('em
otions.del
ta_height'
,0)),inlin
e:1},{plug
in_url:url
});});ed.a
ddButton('
emotions',
{title:'em
otions.emo
tions_desc
',cmd:'mce
Emotion'})
;},getInfo
:function(
){return{l
ongname:'E
motions',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
/emotions'
,version:t
inymce.maj
orVersion+
"."+tinymc
e.minorVer
sion};}});
tinymce.Pl
uginManage
r.add('emo
tions',tin
ymce.plugi
ns.Emotion
sPlugin);}
)();
|