No regular expressions were active.
1 |
|
function i
nit() {
|
|
|
2 |
|
var in
st;
|
|
|
3 |
|
|
|
|
4 |
|
tinyMC
EPopup.res
izeToInner
Size();
|
|
|
5 |
|
inst =
tinyMCE.s
electedIns
tance;
|
|
|
6 |
|
|
|
|
7 |
|
// Giv
e FF some
time
|
|
|
8 |
|
window
.setTimeou
t('insertH
elpIFrame(
);', 10);
|
|
|
9 |
|
|
|
|
10 |
|
var tc
ont = docu
ment.getEl
ementById(
'plugintab
lecontaine
r');
|
|
|
11 |
|
var pl
ugins = ti
nyMCE.getP
aram('plug
ins', '',
true, ',')
;
|
|
|
12 |
|
if (pl
ugins.leng
th == 0)
|
|
|
13 |
|
do
cument.get
ElementByI
d('plugins
_tab').sty
le.display
= 'none';
|
|
|
14 |
|
|
|
|
15 |
|
var ht
ml = "";
|
|
|
16 |
|
html +
= '<table
id="plugin
table">';
|
|
|
17 |
|
html +
= '<thead>
';
|
|
|
18 |
|
html +
= '<tr>';
|
|
|
19 |
|
html +
= '<td>' +
tinyMCE.g
etLang('la
ng_plugin'
) + '</td>
';
|
|
|
20 |
|
html +
= '<td>' +
tinyMCE.g
etLang('la
ng_author'
) + '</td>
';
|
|
|
21 |
|
html +
= '<td>' +
tinyMCE.g
etLang('la
ng_version
') + '</td
>';
|
|
|
22 |
|
html +
= '</tr>';
|
|
|
23 |
|
html +
= '</thead
>';
|
|
|
24 |
|
html +
= '<tbody>
';
|
|
|
25 |
|
|
|
|
26 |
|
for (v
ar i=0; i<
inst.plugi
ns.length;
i++) {
|
|
|
27 |
|
va
r info = g
etPluginIn
fo(inst.pl
ugins[i]);
|
|
|
28 |
|
|
|
|
29 |
|
ht
ml += '<tr
>';
|
|
|
30 |
|
|
|
|
31 |
|
if
(info.inf
ourl != nu
ll && info
.infourl !
= '')
|
|
|
32 |
|
html +=
'<td width
="50%" tit
le="' + pl
ugins[i] +
'"><a hre
f="' + inf
o.infourl
+ '" targe
t="mceplug
in">' + in
fo.longnam
e + '</a><
/td>';
|
|
|
33 |
|
el
se
|
|
|
34 |
|
html +=
'<td width
="50%" tit
le="' + pl
ugins[i] +
'">' + in
fo.longnam
e + '</td>
';
|
|
|
35 |
|
|
|
|
36 |
|
if
(info.aut
horurl !=
null && in
fo.authoru
rl != '')
|
|
|
37 |
|
html +=
'<td width
="35%"><a
href="' +
info.autho
rurl + '"
target="mc
eplugin">'
+ info.au
thor + '</
a></td>';
|
|
|
38 |
|
el
se
|
|
|
39 |
|
html +=
'<td width
="35%">' +
info.auth
or + '</td
>';
|
|
|
40 |
|
|
|
|
41 |
|
ht
ml += '<td
width="15
%">' + inf
o.version
+ '</td>';
|
|
|
42 |
|
ht
ml += '</t
r>';
|
|
|
43 |
|
}
|
|
|
44 |
|
|
|
|
45 |
|
html +
= '</tbody
>';
|
|
|
46 |
|
html +
= '</table
>';
|
|
|
47 |
|
|
|
|
48 |
|
tcont.
innerHTML
= html;
|
|
|
49 |
|
}
|
|
|
50 |
|
|
|
|
51 |
|
function g
etPluginIn
fo(name) {
|
|
|
52 |
|
if (ti
nyMCE.plug
ins[name].
getInfo)
|
|
|
53 |
|
re
turn tinyM
CE.plugins
[name].get
Info();
|
|
|
54 |
|
|
|
|
55 |
|
return
{
|
|
|
56 |
|
lo
ngname : n
ame,
|
|
|
57 |
|
au
thorurl :
'',
|
|
|
58 |
|
in
fourl : ''
,
|
|
|
59 |
|
au
thor : '--
',
|
|
|
60 |
|
ve
rsion : '-
-'
|
|
|
61 |
|
};
|
|
|
62 |
|
}
|
|
|
63 |
|
|
|
|
64 |
|
function i
nsertHelpI
Frame() {
|
|
|
65 |
|
var ht
ml = '<ifr
ame width=
"100%" hei
ght="300"
src="' + t
inyMCE.the
meURL + "/
docs/" + t
inyMCE.set
tings['doc
s_language
'] + "/ind
ex.htm" +
'"></ifram
e>';
|
|
|
66 |
|
|
|
|
67 |
|
docume
nt.getElem
entById('i
frameconta
iner').inn
erHTML = h
tml;
|
|
|
68 |
|
|
|
|
69 |
|
html =
'';
|
|
|
70 |
|
html +
= '<a href
="http://w
ww.moxieco
de.com" ta
rget="_bla
nk"><img s
rc="http:/
/tinymce.m
oxiecode.c
om/images/
gotmoxie.p
ng" alt="G
ot Moxie?"
border="0
" /></a> '
;
|
|
|
71 |
|
html +
= '<a href
="http://s
ourceforge
.net/proje
cts/tinymc
e/" target
="_blank">
<img src="
http://sou
rceforge.n
et/sflogo.
php?group_
id=103281"
alt="Host
ed By Sour
ceforge" b
order="0"
/></a> ';
|
|
|
72 |
|
html +
= '<a href
="http://w
ww.freshme
at.net/pro
jects/tiny
mce" targe
t="_blank"
><img src=
"http://ti
nymce.moxi
ecode.com/
images/fm.
gif" alt="
Also on fr
eshmeat" b
order="0"
/></a> ';
|
|
|
73 |
|
|
|
|
74 |
|
docume
nt.getElem
entById('b
uttonconta
iner').inn
erHTML = h
tml;
|
|
|
75 |
|
}
|
|
|