No regular expressions were active.
|
|
1 |
|
<!DOCTYPE
html PUBLI
C "-//W3C/
/DTD XHTML
1.0 Stric
t//EN" "ht
tp://www.w
3.org/TR/x
html1/DTD/
xhtml1-str
ict.dtd">
|
1 |
|
<html xmln
s="http://
www.w3.org
/1999/xhtm
l">
|
|
2 |
|
<html xmln
s="http://
www.w3.org
/1999/xhtm
l">
|
2 |
|
<head>
|
|
3 |
|
<head>
|
3 |
|
<title>
{$lang_ful
lscreen_ti
tle}
</title>
|
|
4 |
|
<title>
</title>
|
4 |
|
<meta
http-equiv
="Content-
Type" cont
ent="text/
html; char
set=iso-88
59-1" />
|
|
5 |
|
<meta
http-equiv
="Content-
Type" cont
ent="text/
html; char
set=iso-88
59-1" />
|
5 |
|
<script
language="
javascript
"
type="text
/javascrip
t"
src="../..
/tiny_mce.
js"></scri
pt>
|
|
6 |
|
<script
type="text
/javascrip
t"
src="../..
/tiny_mce.
js"></scri
pt>
|
6 |
|
<script
language="
javascript
"
type="text
/javascrip
t">
|
|
7 |
|
<script
type="text
/javascrip
t">
|
7 |
|
fu
nction pat
chCallback
(settings,
key) {
|
|
8 |
|
fu
nction pat
chCallback
(settings,
key) {
|
8 |
|
if (sett
ings[key])
|
|
9 |
|
if (sett
ings[key])
|
9 |
|
sett
ings[key]
= "window.
opener." +
settings[
key];
|
|
10 |
|
sett
ings[key]
= "window.
opener." +
settings[
key];
|
10 |
|
}
|
|
11 |
|
}
|
11 |
|
|
|
12 |
|
|
12 |
|
va
r settings
= new Arr
ay();
|
|
13 |
|
va
r settings
= {}, paS
e = window
.opener.ti
nyMCE.acti
veEditor.s
ettings;
|
13 |
|
|
|
14 |
|
|
14 |
|
//
Clone arr
ay
|
|
15 |
|
//
Clone arr
ay
|
15 |
|
fo
r (var nam
e in windo
w.opener.t
inyMCE.set
tings)
|
|
16 |
|
fo
r (var n i
n paSe)
|
16 |
|
settings[n
ame
]
=
window.o
p
e
ner.tinyMC
E.settings
[n
ame
];
|
|
17 |
|
settings[n
]
=
p
aS
e
[n
];
|
17 |
|
|
|
18 |
|
|
18 |
|
//
Override
options fo
r fullscre
en
|
|
19 |
|
//
Override
options fo
r fullscre
en
|
19 |
|
for
(var
n
ame
in
window.o
p
e
ner.tinyMC
E.settings
.fullscree
n_settings
)
|
|
20 |
|
for
(var
n
in
p
aS
e
.fullscree
n_settings
)
|
20 |
|
settings[n
ame
]
=
window.o
p
e
ner.tinyMC
E.settings
.fullscree
n_settings
[n
ame
];
|
|
21 |
|
settings[n
]
=
p
aS
e
.fullscree
n_settings
[n
];
|
21 |
|
|
|
22 |
|
|
22 |
|
//
Patch cal
lbacks, ma
ke them po
int to win
dow.opener
|
|
23 |
|
//
Patch cal
lbacks, ma
ke them po
int to win
dow.opener
|
23 |
|
pa
tchCallbac
k(settings
, 'urlconv
erter_call
back');
|
|
24 |
|
pa
tchCallbac
k(settings
, 'urlconv
erter_call
back');
|
24 |
|
pa
tchCallbac
k(settings
, 'insertl
ink_callba
ck');
|
|
25 |
|
pa
tchCallbac
k(settings
, 'insertl
ink_callba
ck');
|
25 |
|
pa
tchCallbac
k(settings
, 'inserti
mage_callb
ack');
|
|
26 |
|
pa
tchCallbac
k(settings
, 'inserti
mage_callb
ack');
|
26 |
|
pa
tchCallbac
k(settings
, 'setupco
ntent_call
back');
|
|
27 |
|
pa
tchCallbac
k(settings
, 'setupco
ntent_call
back');
|
27 |
|
pa
tchCallbac
k(settings
, 'save_ca
llback');
|
|
28 |
|
pa
tchCallbac
k(settings
, 'save_ca
llback');
|
28 |
|
pa
tchCallbac
k(settings
, 'onchang
e_callback
');
|
|
29 |
|
pa
tchCallbac
k(settings
, 'onchang
e_callback
');
|
29 |
|
pa
tchCallbac
k(settings
, 'init_in
stance_cal
lback');
|
|
30 |
|
pa
tchCallbac
k(settings
, 'init_in
stance_cal
lback');
|
30 |
|
pa
tchCallbac
k(settings
, 'file_br
owser_call
back');
|
|
31 |
|
pa
tchCallbac
k(settings
, 'file_br
owser_call
back');
|
31 |
|
pa
tchCallbac
k(settings
, 'cleanup
_callback'
);
|
|
32 |
|
pa
tchCallbac
k(settings
, 'cleanup
_callback'
);
|
32 |
|
pa
tchCallbac
k(settings
, 'execcom
mand_callb
ack');
|
|
33 |
|
pa
tchCallbac
k(settings
, 'execcom
mand_callb
ack');
|
33 |
|
pa
tchCallbac
k(settings
, 'oninit'
);
|
|
34 |
|
pa
tchCallbac
k(settings
, 'oninit'
);
|
34 |
|
|
|
35 |
|
|
35 |
|
//
Set optio
ns
|
|
36 |
|
//
Set optio
ns
|
|
|
37 |
|
de
lete setti
ngs.id;
|
36 |
|
se
ttings['mo
de'] = 'ex
act';
|
|
38 |
|
se
ttings['mo
de'] = 'ex
act';
|
37 |
|
se
ttings['el
ements'] =
'fullscre
enarea';
|
|
39 |
|
se
ttings['el
ements'] =
'fullscre
enarea';
|
|
|
40 |
|
se
ttings['ad
d_unload_t
rigger'] =
false;
|
38 |
|
se
ttings['as
k'] = fals
e;
|
|
41 |
|
se
ttings['as
k'] = fals
e;
|
39 |
|
se
ttings['se
tupcontent
_callback'
] = 'setup
Content';
|
|
42 |
|
se
ttings['do
cument_bas
e_url'] =
window.ope
ner.tinyMC
E.activeEd
itor.docum
entBaseURI
.getURI();
|
40 |
|
se
ttings['fu
llscreen_i
s_enabled'
] = true;
|
|
43 |
|
se
ttings['fu
llscreen_i
s_enabled'
] = true;
|
41 |
|
settings['
fullscreen
_editor_id
']
=
window.ope
ner.tinyMC
E.
ge
t
W
i
ndowArg("
e
ditor
_
id
")
;
|
|
44 |
|
settings['
fullscreen
_editor_id
']
=
window.ope
ner.tinyMC
E.
ac
t
i
v
e
E
ditor
.
id
;
|
42 |
|
se
ttings['th
eme_advanc
ed_resizin
g'] = fals
e;
|
|
45 |
|
se
ttings['th
eme_advanc
ed_resizin
g'] = fals
e;
|
|
|
46 |
|
se
ttings['st
rict_loadi
ng_mode']
= true;
|
43 |
|
|
|
47 |
|
|
44 |
|
//
Init
|
|
48 |
|
se
ttings.sav
e_onsaveca
llback = f
unction()
{
|
45 |
|
ti
nyMCE.init
(settings)
;
|
|
49 |
|
window.ope
ner.tinyMC
E.
activeEdit
or.s
etContent(
tinyMCE.ge
t
('fullscre
en
ar
e
a').getCon
t
ent({f
or
mat
:
'
raw'}
)
,
{format
:
'raw'}
);
|
46 |
|
ti
nyMCE.docu
mentBasePa
th = windo
w.opener.t
inyMCE.doc
umentBaseP
ath;
|
|
50 |
|
window.o
pener.tiny
MCE.active
Editor.exe
cCommand('
mceSave');
|
47 |
|
|
|
51 |
|
window.c
lose();
|
48 |
|
fu
nction set
upContent(
editor_id,
body, doc
) {
|
|
52 |
|
}
;
|
49 |
|
var inst
= tinyMCE
.getInstan
ceById(edi
tor_id);
|
|
|
50 |
|
var
content
=
window.ope
ner.tinyMC
E.
g
etContent(
tinyMCE.ge
t
Param
('fullscre
en
_
e
di
t
or
_id
'
)
);
|
|
|
51 |
|
|
|
|
52 |
|
// Setup
title
|
|
|
53 |
|
var divE
lm = docum
ent.create
Element("d
iv");
|
|
|
54 |
|
divElm.i
nnerHTML =
tinyMCELa
ng['lang_f
ullscreen_
title'];
|
|
|
55 |
|
document
.title = d
ivElm.inne
rHTML;
|
|
|
56 |
|
|
|
|
57 |
|
// Get c
ontent
|
|
|
58 |
|
inst.exe
cCommand('
mceSetCont
ent', fals
e, content
);
|
|
|
59 |
|
}
|
|
|
60 |
|
|
|
53 |
|
|
61 |
|
fu
nction unl
oadHandler
(e) {
|
|
54 |
|
fu
nction unl
oadHandler
(e) {
|
62 |
|
moveCont
ent();
|
|
55 |
|
moveCont
ent();
|
63 |
|
}
|
|
56 |
|
}
|
64 |
|
|
|
57 |
|
|
65 |
|
fu
nction mov
eContent()
{
|
|
58 |
|
fu
nction mov
eContent()
{
|
66 |
|
var doc
= tinyMCE.
isMSIE ? w
indow.fram
es['mce_ed
itor_0'].w
indow.docu
ment : doc
ument.getE
lementById
('mce_edit
or_0').con
tentDocume
nt;
|
|
59 |
|
window.ope
ner.tinyMC
E.
ac
t
i
veE
d
it
o
r
.
s
e
tCo
n
t
e
nt(
tinyMCE.
a
ct
iv
e
E
d
i
t
or
.get
C
o
n
t
e
nt()
);
|
67 |
|
window.ope
ner.tinyMC
E.
se
t
InnerHTML(
w
i
n
d
o
w
.
op
e
n
e
r.
tinyMCE.
sele
ct
e
d
Ins
t
ance
.get
Body(),
doc.b
o
dy.in
n
e
rHTML
);
|
|
|
68 |
|
}
|
|
60 |
|
}
|
69 |
|
|
|
61 |
|
|
70 |
|
//
Add onunl
oad
|
|
62 |
|
fu
nction clo
seFullscre
en() {
|
71 |
|
ti
nyMCE.addE
vent(windo
w, "before
unload", u
nloadHandl
er);
|
|
63 |
|
moveCont
ent();
|
|
|
64 |
|
window.c
lose();
|
|
|
65 |
|
}
|
72 |
|
|
|
66 |
|
|
73 |
|
fu
nction doP
arentSubmi
t() {
|
|
67 |
|
fu
nction doP
arentSubmi
t() {
|
74 |
|
moveCont
ent();
|
|
68 |
|
moveCont
ent();
|
75 |
|
|
|
69 |
|
|
76 |
|
if (wind
ow.opener.
tinyMCE.se
lectedInst
ance.formE
lement.for
m)
|
|
70 |
|
if (wind
ow.opener.
tinyMCE.se
lectedInst
ance.formE
lement.for
m)
|
77 |
|
wind
ow.opener.
tinyMCE.se
lectedInst
ance.formE
lement.for
m.submit()
;
|
|
71 |
|
wind
ow.opener.
tinyMCE.se
lectedInst
ance.formE
lement.for
m.submit()
;
|
78 |
|
|
|
72 |
|
|
79 |
|
window.c
lose();
|
|
73 |
|
window.c
lose();
|
80 |
|
|
|
74 |
|
|
81 |
|
return f
alse;
|
|
75 |
|
return f
alse;
|
82 |
|
}
|
|
76 |
|
}
|
|
|
77 |
|
|
|
|
78 |
|
fu
nction ren
der() {
|
|
|
79 |
|
var e =
document.g
etElementB
yId('fulls
creenarea'
), vp, ed,
ow, oh, d
om = tinym
ce.DOM;
|
|
|
80 |
|
|
|
|
81 |
|
e.value
= window.o
pener.tiny
MCE.active
Editor.get
Content();
|
|
|
82 |
|
|
|
|
83 |
|
vp = dom
.getViewPo
rt();
|
|
|
84 |
|
settings
.width = v
p.w;
|
|
|
85 |
|
settings
.height =
vp.h - 15;
|
|
|
86 |
|
|
|
|
87 |
|
tinymce.
dom.Event.
add(window
, 'resize'
, function
() {
|
|
|
88 |
|
var
vp = dom.g
etViewPort
();
|
|
|
89 |
|
|
|
|
90 |
|
tiny
MCE.active
Editor.the
me.resizeT
o(vp.w, vp
.h);
|
|
|
91 |
|
});
|
|
|
92 |
|
|
|
|
93 |
|
tinyMCE.
init(setti
ngs);
|
|
|
94 |
|
}
|
|
|
95 |
|
|
|
|
96 |
|
//
Add onunl
oad
|
|
|
97 |
|
ti
nymce.dom.
Event.add(
window, "b
eforeunloa
d", unload
Handler);
|
83 |
|
</scri
pt>
|
|
98 |
|
</scri
pt>
|
84 |
|
<base
target="_s
elf" />
|
|
99 |
|
<base
target="_s
elf" />
|
85 |
|
</head>
|
|
100 |
|
</head>
|
86 |
|
<body
style="mar
gin:
0;
overflow:
hidden;
height:
100%"
scrolling=
"no"
scroll="no
">
|
|
101 |
|
<body
style="mar
gin:0;over
flow:hidde
n;
width:100%
;
height:100
%"
scrolling=
"no"
scroll="no
">
|
87 |
|
<form
onsubmit="
doParentSu
bmit();"
style="hei
ght:
100%"
>
|
|
102 |
|
<form
onsubmit="
doParentSu
bmit();"
>
|
88 |
|
<textarea
id="fullsc
reenarea"
style="wid
th: 100%;
height: 10
0%"></text
area>
|
|
103 |
|
<textarea
id="fullsc
reenarea"
style="wid
th:100%; h
eight:100%
"></textar
ea>
|
89 |
|
</form>
|
|
104 |
|
</form>
|
|
|
105 |
|
|
|
|
106 |
|
<script ty
pe="text/j
avascript"
>
|
|
|
107 |
|
render
();
|
|
|
108 |
|
</script>
|
|
|
109 |
|
|
90 |
|
</body>
|
|
110 |
|
</body>
|
91 |
|
</html>
|
|
111 |
|
</html>
|