No regular expressions were active.
|
|
1 |
|
tinyMCEPop
up.require
LangPack()
;
|
|
|
2 |
|
|
|
|
3 |
|
function s
aveContent
() {
|
|
|
4 |
|
if (do
cument.for
ms[0].html
Source.val
ue == '')
{
|
|
|
5 |
|
ti
nyMCEPopup
.close();
|
|
|
6 |
|
re
turn false
;
|
|
|
7 |
|
}
|
|
|
8 |
|
|
|
|
9 |
|
tinyMC
EPopup.exe
cCommand('
mcePasteTe
xt', false
, {
|
|
|
10 |
|
ht
ml : docum
ent.forms[
0].htmlSou
rce.value,
|
|
|
11 |
|
li
nebreaks :
document.
forms[0].l
inebreaks.
checked
|
|
|
12 |
|
});
|
|
|
13 |
|
|
|
|
14 |
|
tinyMC
EPopup.clo
se();
|
|
|
15 |
|
}
|
|
|
16 |
|
|
|
|
17 |
|
function o
nLoadInit(
) {
|
|
|
18 |
|
tinyMC
EPopup.res
izeToInner
Size();
|
|
|
19 |
|
|
|
|
20 |
|
// Rem
ove Gecko
spellcheck
ing
|
|
|
21 |
|
if (ti
nymce.isGe
cko)
|
|
|
22 |
|
do
cument.bod
y.spellche
ck = tinyM
CEPopup.ge
tParam("ge
cko_spellc
heck");
|
|
|
23 |
|
|
|
|
24 |
|
resize
Inputs();
|
|
|
25 |
|
}
|
|
|
26 |
|
|
|
|
27 |
|
var wHeigh
t=0, wWidt
h=0, owHei
ght=0, owW
idth=0;
|
|
|
28 |
|
|
|
|
29 |
|
function r
esizeInput
s() {
|
|
|
30 |
|
if (!t
inymce.isI
E) {
|
|
|
31 |
|
wH
eight = se
lf.innerHe
ight-80;
|
|
|
32 |
|
wW
idth = sel
f.innerWid
th-17;
|
|
|
33 |
|
} else
{
|
|
|
34 |
|
wH
eight = do
cument.bod
y.clientHe
ight-80;
|
|
|
35 |
|
wW
idth = doc
ument.body
.clientWid
th-17;
|
|
|
36 |
|
}
|
|
|
37 |
|
|
|
|
38 |
|
docume
nt.forms[0
].htmlSour
ce.style.h
eight = Ma
th.abs(wHe
ight) + 'p
x';
|
|
|
39 |
|
docume
nt.forms[0
].htmlSour
ce.style.w
idth = Ma
th.abs(wWi
dth) + 'px
';
|
|
|
40 |
|
}
|
|
|
41 |
|
|
|
|
42 |
|
tinyMCEPop
up.onInit.
add(onLoad
Init);
|