|
|
1 |
|
(function(
){tinymce.
PluginMana
ger.requir
eLangPack(
'example')
;tinymce.c
reate('tin
ymce.plugi
ns.Example
Plugin',{i
nit:functi
on(ed,url)
{ed.addCom
mand('mceE
xample',fu
nction(){e
d.windowMa
nager.open
({file:url
+'/dialog.
htm',width
:320+parse
Int(ed.get
Lang('exam
ple.delta_
width',0))
,height:12
0+parseInt
(ed.getLan
g('example
.delta_hei
ght',0)),i
nline:1},{
plugin_url
:url,some_
custom_arg
:'custom a
rg'});});e
d.addButto
n('example
',{title:'
example.de
sc',cmd:'m
ceExample'
,image:url
+'/img/exa
mple.gif'}
);ed.onNod
eChange.ad
d(function
(ed,cm,n){
cm.setActi
ve('exampl
e',n.nodeN
ame=='IMG'
);});},cre
ateControl
:function(
n,cm){retu
rn null;},
getInfo:fu
nction(){r
eturn{long
name:'Exam
ple plugin
',author:'
Some autho
r',authoru
rl:'http:/
/tinymce.m
oxiecode.c
om',infour
l:'http://
wiki.moxie
code.com/i
ndex.php/T
inyMCE:Plu
gins/examp
le',versio
n:"1.0"};}
});tinymce
.PluginMan
ager.add('
example',t
inymce.plu
gins.Examp
lePlugin);
})();
|