No regular expressions were active.
|
|
1 |
|
tinyMCEPop
up.require
LangPack()
;
|
|
|
2 |
|
|
|
|
3 |
|
function i
nit() {
|
|
|
4 |
|
var ed
, tcont;
|
|
|
5 |
|
|
|
|
6 |
|
tinyMC
EPopup.res
izeToInner
Size();
|
|
|
7 |
|
ed = t
inyMCEPopu
p.editor;
|
|
|
8 |
|
|
|
|
9 |
|
// Giv
e FF some
time
|
|
|
10 |
|
window
.setTimeou
t('insertH
elpIFrame(
);', 10);
|
|
|
11 |
|
|
|
|
12 |
|
tcont
= document
.getElemen
tById('plu
gintableco
ntainer');
|
|
|
13 |
|
docume
nt.getElem
entById('p
lugins_tab
').style.d
isplay = '
none';
|
|
|
14 |
|
|
|
|
15 |
|
var ht
ml = "";
|
|
|
16 |
|
html +
= '<table
id="plugin
table">';
|
|
|
17 |
|
html +
= '<thead>
';
|
|
|
18 |
|
html +
= '<tr>';
|
|
|
19 |
|
html +
= '<td>' +
ed.getLan
g('advance
d_dlg.abou
t_plugin')
+ '</td>'
;
|
|
|
20 |
|
html +
= '<td>' +
ed.getLan
g('advance
d_dlg.abou
t_author')
+ '</td>'
;
|
|
|
21 |
|
html +
= '<td>' +
ed.getLan
g('advance
d_dlg.abou
t_version'
) + '</td>
';
|
|
|
22 |
|
html +
= '</tr>';
|
|
|
23 |
|
html +
= '</thead
>';
|
|
|
24 |
|
html +
= '<tbody>
';
|
|
|
25 |
|
|
|
|
26 |
|
tinymc
e.each(ed.
plugins, f
unction(p,
n) {
|
|
|
27 |
|
va
r info;
|
|
|
28 |
|
|
|
|
29 |
|
if
(!p.getIn
fo)
|
|
|
30 |
|
return;
|
|
|
31 |
|
|
|
|
32 |
|
ht
ml += '<tr
>';
|
|
|
33 |
|
|
|
|
34 |
|
in
fo = p.get
Info();
|
|
|
35 |
|
|
|
|
36 |
|
if
(info.inf
ourl != nu
ll && info
.infourl !
= '')
|
|
|
37 |
|
html +=
'<td width
="50%" tit
le="' + n
+ '"><a hr
ef="' + in
fo.infourl
+ '" targ
et="_blank
">' + info
.longname
+ '</a></t
d>';
|
|
|
38 |
|
el
se
|
|
|
39 |
|
html +=
'<td width
="50%" tit
le="' + n
+ '">' + i
nfo.longna
me + '</td
>';
|
|
|
40 |
|
|
|
|
41 |
|
if
(info.aut
horurl !=
null && in
fo.authoru
rl != '')
|
|
|
42 |
|
html +=
'<td width
="35%"><a
href="' +
info.autho
rurl + '"
target="_b
lank">' +
info.autho
r + '</a><
/td>';
|
|
|
43 |
|
el
se
|
|
|
44 |
|
html +=
'<td width
="35%">' +
info.auth
or + '</td
>';
|
|
|
45 |
|
|
|
|
46 |
|
ht
ml += '<td
width="15
%">' + inf
o.version
+ '</td>';
|
|
|
47 |
|
ht
ml += '</t
r>';
|
|
|
48 |
|
|
|
|
49 |
|
do
cument.get
ElementByI
d('plugins
_tab').sty
le.display
= '';
|
|
|
50 |
|
|
|
|
51 |
|
});
|
|
|
52 |
|
|
|
|
53 |
|
html +
= '</tbody
>';
|
|
|
54 |
|
html +
= '</table
>';
|
|
|
55 |
|
|
|
|
56 |
|
tcont.
innerHTML
= html;
|
|
|
57 |
|
|
|
|
58 |
|
tinyMC
EPopup.dom
.get('vers
ion').inne
rHTML = ti
nymce.majo
rVersion +
"." + tin
ymce.minor
Version;
|
|
|
59 |
|
tinyMC
EPopup.dom
.get('date
').innerHT
ML = tinym
ce.release
Date;
|
|
|
60 |
|
}
|
|
|
61 |
|
|
|
|
62 |
|
function i
nsertHelpI
Frame() {
|
|
|
63 |
|
var ht
ml;
|
|
|
64 |
|
|
|
|
65 |
|
if (ti
nyMCEPopup
.getParam(
'docs_url'
)) {
|
|
|
66 |
|
ht
ml = '<ifr
ame width=
"100%" hei
ght="300"
src="' + t
inyMCEPopu
p.editor.b
aseURI.toA
bsolute(ti
nyMCEPopup
.getParam(
'docs_url'
)) + '"></
iframe>';
|
|
|
67 |
|
do
cument.get
ElementByI
d('iframec
ontainer')
.innerHTML
= html;
|
|
|
68 |
|
do
cument.get
ElementByI
d('help_ta
b').style.
display =
'block';
|
|
|
69 |
|
}
|
|
|
70 |
|
}
|
|
|
71 |
|
|
|
|
72 |
|
tinyMCEPop
up.onInit.
add(init);
|