No regular expressions were active.
1 |
|
function s
aveContent
() {
|
|
|
2 |
|
var ht
ml = docum
ent.getEle
mentById("
frmData").
contentWin
dow.docume
nt.body.in
nerHTML;
|
|
|
3 |
|
|
|
|
4 |
|
if (ht
ml == ''){
|
|
|
5 |
|
ti
nyMCEPopup
.close();
|
|
|
6 |
|
re
turn false
;
|
|
|
7 |
|
}
|
|
|
8 |
|
|
|
|
9 |
|
tinyMC
EPopup.exe
cCommand('
mcePasteWo
rd', false
, html);
|
|
|
10 |
|
tinyMC
EPopup.clo
se();
|
|
|
11 |
|
}
|
|
|
12 |
|
|
|
|
13 |
|
function o
nLoadInit(
) {
|
|
|
14 |
|
tinyMC
EPopup.res
izeToInner
Size();
|
|
|
15 |
|
|
|
|
16 |
|
// Fix
for endle
ss reloadi
ng in FF
|
|
|
17 |
|
window
.setTimeou
t('createI
Frame();',
10);
|
|
|
18 |
|
}
|
|
|
19 |
|
|
|
|
20 |
|
function c
reateIFram
e() {
|
|
|
21 |
|
docume
nt.getElem
entById('i
frameconta
iner').inn
erHTML = '
<iframe id
="frmData"
name="frm
Data" clas
s="sourceI
frame" src
="blank.ht
m" height=
"280" widt
h="400" fr
ameborder=
"0" style=
"backgroun
d-color:#F
FFFFF; wid
th:100%;"
dir="ltr"
wrap="soft
"></iframe
>';
|
|
|
22 |
|
}
|
|
|
23 |
|
|
|
|
24 |
|
var wHeigh
t=0, wWidt
h=0, owHei
ght=0, owW
idth=0;
|
|
|
25 |
|
|
|
|
26 |
|
function i
nitIframe(
doc) {
|
|
|
27 |
|
var di
r = tinyMC
E.selected
Instance.s
ettings['d
irectional
ity'];
|
|
|
28 |
|
|
|
|
29 |
|
doc.bo
dy.dir = d
ir;
|
|
|
30 |
|
|
|
|
31 |
|
// Rem
ove Gecko
spellcheck
ing
|
|
|
32 |
|
if (ti
nyMCE.isGe
cko)
|
|
|
33 |
|
do
c.body.spe
llcheck =
tinyMCE.ge
tParam("ge
cko_spellc
heck");
|
|
|
34 |
|
|
|
|
35 |
|
resize
Inputs();
|
|
|
36 |
|
}
|
|
|
37 |
|
|
|
|
38 |
|
function r
esizeInput
s() {
|
|
|
39 |
|
if (!t
inyMCE.isM
SIE) {
|
|
|
40 |
|
wH
eight = se
lf.innerHe
ight - 80;
|
|
|
41 |
|
wW
idth = sel
f.innerWid
th - 18;
|
|
|
42 |
|
} else
{
|
|
|
43 |
|
wH
eight = do
cument.bod
y.clientHe
ight - 80;
|
|
|
44 |
|
wW
idth = doc
ument.body
.clientWid
th - 18;
|
|
|
45 |
|
}
|
|
|
46 |
|
|
|
|
47 |
|
var el
m = docume
nt.getElem
entById('f
rmData');
|
|
|
48 |
|
if (el
m) {
|
|
|
49 |
|
el
m.style.he
ight = Mat
h.abs(wHei
ght) + 'px
';
|
|
|
50 |
|
el
m.style.wi
dth = Mat
h.abs(wWid
th) + 'px'
;
|
|
|
51 |
|
}
|
|
|
52 |
|
}
|
|
|