No regular expressions were active.
1 |
|
function s
aveContent
() {
|
|
|
2 |
|
tinyMC
E.setConte
nt(documen
t.getEleme
ntById('ht
mlSource')
.value);
|
|
|
3 |
|
tinyMC
E.closeWin
dow(window
);
|
|
|
4 |
|
}
|
|
|
5 |
|
|
|
|
6 |
|
function o
nLoadInit(
) {
|
|
|
7 |
|
tinyMC
EPopup.res
izeToInner
Size();
|
|
|
8 |
|
|
|
|
9 |
|
// Rem
ove Gecko
spellcheck
ing
|
|
|
10 |
|
if (ti
nyMCE.isGe
cko)
|
|
|
11 |
|
do
cument.bod
y.spellche
ck = tinyM
CE.getPara
m("gecko_s
pellcheck"
);
|
|
|
12 |
|
|
|
|
13 |
|
docume
nt.getElem
entById('h
tmlSource'
).value =
tinyMCE.ge
tContent(t
inyMCE.get
WindowArg(
'editor_id
'));
|
|
|
14 |
|
|
|
|
15 |
|
resize
Inputs();
|
|
|
16 |
|
|
|
|
17 |
|
if (ti
nyMCE.getP
aram("them
e_advanced
_source_ed
itor_wrap"
, true)) {
|
|
|
18 |
|
se
tWrap('sof
t');
|
|
|
19 |
|
do
cument.get
ElementByI
d('wraped'
).checked
= true;
|
|
|
20 |
|
}
|
|
|
21 |
|
}
|
|
|
22 |
|
|
|
|
23 |
|
function s
etWrap(val
) {
|
|
|
24 |
|
var s
= document
.getElemen
tById('htm
lSource');
|
|
|
25 |
|
|
|
|
26 |
|
s.wrap
= val;
|
|
|
27 |
|
|
|
|
28 |
|
if (ti
nyMCE.isGe
cko || tin
yMCE.isOpe
ra) {
|
|
|
29 |
|
va
r v = s.va
lue;
|
|
|
30 |
|
va
r n = s.cl
oneNode(fa
lse);
|
|
|
31 |
|
n.
setAttribu
te("wrap",
val);
|
|
|
32 |
|
s.
parentNode
.replaceCh
ild(n, s);
|
|
|
33 |
|
n.
value = v;
|
|
|
34 |
|
}
|
|
|
35 |
|
}
|
|
|
36 |
|
|
|
|
37 |
|
function t
oggleWordW
rap(elm) {
|
|
|
38 |
|
if (el
m.checked)
|
|
|
39 |
|
se
tWrap('sof
t');
|
|
|
40 |
|
else
|
|
|
41 |
|
se
tWrap('off
');
|
|
|
42 |
|
}
|
|
|
43 |
|
|
|
|
44 |
|
var wHeigh
t=0, wWidt
h=0, owHei
ght=0, owW
idth=0;
|
|
|
45 |
|
|
|
|
46 |
|
function r
esizeInput
s() {
|
|
|
47 |
|
var el
= documen
t.getEleme
ntById('ht
mlSource')
;
|
|
|
48 |
|
|
|
|
49 |
|
if (!t
inyMCE.isM
SIE) {
|
|
|
50 |
|
w
Height = s
elf.innerH
eight - 60
;
|
|
|
51 |
|
w
Width = se
lf.innerWi
dth - 16;
|
|
|
52 |
|
} else
{
|
|
|
53 |
|
w
Height = d
ocument.bo
dy.clientH
eight - 60
;
|
|
|
54 |
|
w
Width = do
cument.bod
y.clientWi
dth - 16;
|
|
|
55 |
|
}
|
|
|
56 |
|
|
|
|
57 |
|
el.sty
le.height
= Math.abs
(wHeight)
+ 'px';
|
|
|
58 |
|
el.sty
le.width
= Math.abs
(wWidth) +
'px';
|
|
|
59 |
|
}
|
|
|