No regular expressions were active.
1 |
|
/**
|
|
1 |
|
/**
|
2 |
|
*
$Id:
editor_plu
gin_src.js
201
200
7
-0
2
-
1
2
15
:
56
:
56
Z
spocke
$
|
|
2 |
|
*
$Id:
editor_plu
gin_src.js
689
200
8
-0
3
-
09
1
8
:
47
:
19
Z
spocke
$
|
3 |
|
*
|
|
3 |
|
*
|
4 |
|
* @author
Moxiecode
|
|
4 |
|
* @author
Moxiecode
|
5 |
|
*
@copyright
Copyright
©
2004-200
7
,
Moxiecode
Systems
AB,
All
rights
reserved.
|
|
5 |
|
*
@copyright
Copyright
©
2004-200
8
,
Moxiecode
Systems
AB,
All
rights
reserved.
|
6 |
|
*/
|
|
6 |
|
*/
|
7 |
|
|
|
7 |
|
|
8 |
|
/* Import
plugin spe
cific lang
uage pack
*/
|
|
8 |
|
(function(
) {
|
9 |
|
tinyMCE.im
portPlugin
LanguagePa
ck('fullsc
reen');
|
|
9 |
|
var DO
M = tinymc
e.DOM;
|
10 |
|
|
|
10 |
|
|
11 |
|
va
r
T
iny
MCE_
FullScreen
Plugin
=
{
|
|
11 |
|
tinymce.c
r
eate('t
iny
mce.plugin
s.
FullScreen
Plugin
',
{
|
12 |
|
getI
n
fo
:
function(
)
{
|
|
12 |
|
i
n
it
:
function(
ed,
url
)
{
|
13 |
|
re
turn {
|
|
13 |
|
var t =
this, s =
{}, vp;
|
14 |
|
longname
: 'Fullsc
reen',
|
|
|
15 |
|
author :
'Moxiecod
e Systems
AB',
|
|
|
16 |
|
authorur
l : 'http:
//tinymce.
moxiecode.
com',
|
|
|
17 |
|
infourl
: 'http://
wiki.moxie
code.com/i
ndex.php/T
inyMCE:Plu
gins/fulls
creen',
|
|
|
18 |
|
version
: tinyMCE.
majorVersi
on + "." +
tinyMCE.m
inorVersio
n
|
|
|
19 |
|
};
|
|
|
20 |
|
},
|
|
|
21 |
|
|
|
|
22 |
|
initIn
stance : f
unction(in
st) {
|
|
|
23 |
|
if
(!tinyMCE
.settings[
'fullscree
n_skip_plu
gin_css'])
|
|
|
24 |
|
tinyMCE.
importCSS(
inst.getCo
ntainerWin
().documen
t, tinyMCE
.baseURL +
"/plugins
/fullscree
n/css/page
.css");
|
|
|
25 |
|
},
|
|
|
26 |
|
|
|
|
27 |
|
getCon
trolHTML :
function(
cn) {
|
|
|
28 |
|
sw
itch (cn)
{
|
|
|
29 |
|
case "fu
llscreen":
|
|
|
30 |
|
retu
rn tinyMCE
.getButton
HTML(cn, '
lang_fulls
creen_desc
', '{$plug
inurl}/ima
ges/fullsc
reen.gif',
'mceFullS
creen');
|
|
|
31 |
|
}
|
|
|
32 |
|
|
|
|
33 |
|
re
turn "";
|
|
|
34 |
|
},
|
|
|
35 |
|
|
|
|
36 |
|
execCo
mmand : fu
nction(edi
tor_id, el
ement, com
mand, user
_interface
, value) {
|
|
|
37 |
|
va
r inst;
|
|
|
38 |
|
|
|
|
39 |
|
//
Handle co
mmands
|
|
|
40 |
|
sw
itch (comm
and) {
|
|
|
41 |
|
case "mc
eFullScree
n":
|
|
|
42 |
|
inst
= tinyMCE
.getInstan
ceById(edi
tor_id);
|
|
|
43 |
|
|
|
14 |
|
|
44 |
|
if (
tinyMCE.ge
tParam('fu
llscreen_n
ew_window'
))
|
|
15 |
|
t.editor
= ed;
|
45 |
|
this._togg
leFullscre
enWin(inst
);
|
|
|
46 |
|
else
|
|
|
47 |
|
this._togg
leFullscre
en(inst);
|
|
|
48 |
|
|
|
16 |
|
|
49 |
|
retu
rn true;
|
|
17 |
|
// Regis
ter comman
ds
|
50 |
|
}
|
|
18 |
|
ed.addC
o
mmand('mc
eFull
S
creen
',
function(
)
{
|
51 |
|
|
|
19 |
|
var
win, de =
document.d
ocumentEle
ment;
|
52 |
|
//
Pass to n
ext handle
r in chain
|
|
|
53 |
|
re
turn false
;
|
|
|
54 |
|
},
|
|
|
55 |
|
|
|
|
56 |
|
_t
o
ggl
eFull
s
creen
Win
:
function(
inst
)
{
|
|
|
57 |
|
if
(tinyMCE.
getParam('
fullscreen
_is_enable
d')) {
|
|
|
58 |
|
// In fu
llscreen m
ode
|
|
|
59 |
|
window.o
pener.tiny
MCE.execIn
stanceComm
and(tinyMC
E.getParam
('fullscre
en_editor_
id'), 'mce
SetContent
', false,
tinyMCE.ge
tContent(i
nst.editor
Id));
|
|
|
60 |
|
top.clos
e();
|
|
|
61 |
|
}
else {
|
|
|
62 |
|
tinyMCE.
setWindowA
rg('editor
_id', inst
.editorId)
;
|
|
|
63 |
|
|
|
20 |
|
|
64 |
|
var win
= window.o
pen(tinyMC
E.baseURL
+ "/plugin
s/fullscre
en/fullscr
een.htm",
"mceFullSc
reenPopup"
, "fullscr
een=yes,me
nubar=no,t
oolbar=no,
scrollbars
=no,resiza
ble=yes,le
ft=0,top=0
,width=" +
screen.av
ailWidth +
",height=
" + screen
.availHeig
ht);
|
|
21 |
|
if (
ed.getPara
m('fullscr
een_is_ena
bled')) {
|
65 |
|
try { wi
n.resizeTo
(screen.av
ailWidth,
screen.ava
ilHeight);
} catch (
e) {}
|
|
22 |
|
if (ed.get
Param('ful
lscreen_ne
w_window')
)
|
|
|
23 |
|
closeF
ullscreen(
); // Call
to close
in new win
dow
|
|
|
24 |
|
else {
|
|
|
25 |
|
window
.setTimeou
t(function
() {
|
|
|
26 |
|
ti
nymce.dom.
Event.remo
ve(window,
'resize',
t.resizeF
unc);
|
|
|
27 |
|
ti
nyMCE.get(
ed.getPara
m('fullscr
een_editor
_id')).set
Content(ed
.getConten
t({format
: 'raw'}),
{format :
'raw'});
|
|
|
28 |
|
ti
nyMCE.remo
ve(ed);
|
|
|
29 |
|
DO
M.remove('
mce_fullsc
reen_conta
iner');
|
|
|
30 |
|
de
.style.ove
rflow = ed
.getParam(
'fullscree
n_html_ove
rflow');
|
|
|
31 |
|
DO
M.setStyle
(document.
body, 'ove
rflow', ed
.getParam(
'fullscree
n_overflow
'));
|
|
|
32 |
|
wi
ndow.scrol
lTo(ed.get
Param('ful
lscreen_sc
rollx'), e
d.getParam
('fullscre
en_scrolly
'));
|
|
|
33 |
|
ti
nyMCE.sett
ings = tin
yMCE.oldSe
ttings; //
Restore o
ld setting
s
|
|
|
34 |
|
}, 10)
;
|
66 |
|
}
|
|
35 |
|
}
|
67 |
|
},
|
|
|
68 |
|
|
|
|
69 |
|
_toggl
eFullscree
n : functi
on(inst) {
|
|
|
70 |
|
va
r ds = ins
t.getData(
'fullscree
n'), edito
rContainer
, tableElm
, iframe,
vp, cw, cd
, re, w, h
, si, blo,
delta = 0
, cell, ro
w, fcml, b
cml;
|
|
|
71 |
|
|
|
|
72 |
|
cw
= inst.ge
tContainer
Win();
|
|
|
73 |
|
cd
= cw.docu
ment;
|
|
|
74 |
|
ed
itorContai
ner = cd.g
etElementB
yId(inst.e
ditorId +
'_parent')
;
|
|
|
75 |
|
ta
bleElm = e
ditorConta
iner.first
Child;
|
|
|
76 |
|
if
rame = ins
t.iframeEl
ement;
|
|
|
77 |
|
re
= cd.getE
lementById
(inst.edit
orId + '_r
esize');
|
|
|
78 |
|
bl
o = docume
nt.getElem
entById('m
ce_fullscr
een_blocke
r');
|
|
|
79 |
|
fc
m = new Ti
nyMCE_Laye
r(inst.edi
torId + '_
fcMenu');
|
|
|
80 |
|
fc
ml = new T
inyMCE_Lay
er(inst.ed
itorId + '
_fcMenu');
|
|
|
81 |
|
bc
ml = new T
inyMCE_Lay
er(inst.ed
itorId + '
_bcMenu');
|
|
|
82 |
|
|
|
36 |
|
|
83 |
|
if
(fcml.exi
sts() && f
cml.isVisi
ble()) {
|
|
37 |
|
return;
|
84 |
|
tinyMCE.
switchClas
s(inst.edi
torId + '_
forecolor'
, 'mceMenu
Button');
|
|
|
85 |
|
fcml.hid
e();
|
|
|
86 |
|
}
|
|
38 |
|
}
|
87 |
|
|
|
39 |
|
|
88 |
|
if
(bcml.exi
sts() && b
cml.isVisi
ble()) {
|
|
40 |
|
if (
ed.getPara
m('fullscr
een_new_wi
ndow')) {
|
89 |
|
tinyMCE.
switchClas
s(inst.edi
torId + '_
backcolor'
, 'mceMenu
Button');
|
|
41 |
|
win = wind
ow.open(ur
l + "/full
screen.htm
", "mceFul
lScreenPop
up", "full
screen=yes
,menubar=n
o,toolbar=
no,scrollb
ars=no,res
izable=yes
,left=0,to
p=0,width=
" + screen
.availWidt
h + ",heig
ht=" + scr
een.availH
eight);
|
90 |
|
bcml.hid
e();
|
|
42 |
|
try {
|
|
|
43 |
|
win.re
sizeTo(scr
een.availW
idth, scre
en.availHe
ight);
|
|
|
44 |
|
} catch (e
) {
|
|
|
45 |
|
// Ign
ore
|
91 |
|
}
|
|
46 |
|
}
|
|
|
47 |
|
} el
se {
|
|
|
48 |
|
tinyMCE.ol
dSettings
= tinyMCE.
settings;
// Store o
ld setting
s
|
|
|
49 |
|
s.fullscre
en_overflo
w = DOM.ge
tStyle(doc
ument.body
, 'overflo
w', 1) ||
'auto';
|
|
|
50 |
|
s.fullscre
en_html_ov
erflow = D
OM.getStyl
e(de, 'ove
rflow', 1)
;
|
|
|
51 |
|
vp = DOM.g
etViewPort
();
|
|
|
52 |
|
s.fullscre
en_scrollx
= vp.x;
|
|
|
53 |
|
s.fullscre
en_scrolly
= vp.y;
|
92 |
|
|
|
54 |
|
|
93 |
|
if
(!ds.enab
led) {
|
|
55 |
|
// Fixes a
n Opera bu
g where th
e scrollba
rs doesn't
reappear
|
94 |
|
// Handl
e External
Toolbar
|
|
56 |
|
if (tinymc
e.isOpera
&& s.fulls
creen_over
flow == 'v
isible')
|
95 |
|
if (inst
.toolbarEl
ement) {
|
|
57 |
|
s.full
screen_ove
rflow = 'a
uto';
|
96 |
|
delt
a += inst.
toolbarEle
ment.offse
tHeight;
|
|
|
97 |
|
|
|
|
98 |
|
cell
= tableEl
m.tBodies[
0].insertR
ow(0).inse
rtCell(-1)
;
|
|
|
99 |
|
cell
.className
= 'mceToo
lbarTop';
|
|
|
100 |
|
cell
.nowrap =
true;
|
|
|
101 |
|
|
|
|
102 |
|
ds.o
ldToolbarP
arent = in
st.toolbar
Element.pa
rentNode;
|
|
|
103 |
|
ds.t
oolbarHold
er = docum
ent.create
TextNode('
...');
|
|
|
104 |
|
|
|
|
105 |
|
cell
.appendChi
ld(ds.oldT
oolbarPare
nt.replace
Child(ds.t
oolbarHold
er, inst.t
oolbarElem
ent));
|
|
|
106 |
|
}
|
|
|
107 |
|
|
|
58 |
|
|
108 |
|
ds.paren
ts = [];
|
|
59 |
|
// Fixes a
n IE bug w
here horiz
ontal scro
llbars wou
ld appear
|
|
|
60 |
|
if (tinymc
e.isIE &&
s.fullscre
en_overflo
w == 'scro
ll')
|
|
|
61 |
|
s.full
screen_ove
rflow = 'a
uto';
|
109 |
|
|
|
62 |
|
|
110 |
|
vp = tin
yMCE.getVi
ewPort(cw)
;
|
|
63 |
|
if (s.full
screen_ove
rflow == '
0px')
|
111 |
|
ds.scrol
lX = vp.le
ft;
|
|
64 |
|
s.full
screen_ove
rflow = ''
;
|
112 |
|
ds.scrol
lY = vp.to
p;
|
|
|
113 |
|
|
|
65 |
|
|
114 |
|
// Opera
has a bug
restoring
scrollbar
s
|
|
66 |
|
DOM.setSty
le(documen
t.body, 'o
verflow',
'hidden');
|
115 |
|
if (!tin
yMCE.isOpe
ra)
|
|
67 |
|
de.style.o
verflow =
'hidden';
//Fix for
IE6/7
|
116 |
|
tiny
MCE.addCSS
Class(cd.b
ody, 'mceF
ullscreen'
);
|
|
68 |
|
vp = DOM.g
etViewPort
();
|
|
|
69 |
|
window.scr
ollTo(0, 0
);
|
117 |
|
|
|
70 |
|
|
118 |
|
tinyMCE.
getParentN
ode(tableE
lm.parentN
ode, funct
ion (n) {
|
|
71 |
|
if (tinymc
e.isIE)
|
119 |
|
if (
n.nodeName
== 'BODY'
)
|
|
72 |
|
vp.h -
= 1;
|
120 |
|
return tru
e;
|
|
|
121 |
|
|
|
73 |
|
|
122 |
|
if (
n.nodeType
== 1)
|
|
74 |
|
n = DOM.ad
d(document
.body, 'di
v', {id :
'mce_fulls
creen_cont
ainer', st
yle : 'pos
ition:abso
lute;top:0
;left:0;wi
dth:' + vp
.w + 'px;h
eight:' +
vp.h + 'px
;z-index:1
50;'});
|
123 |
|
tiny
M
CE
.add
CSSClass
(n,
'
mce
F
ullscreen
Pos
'
);
|
|
75 |
|
DO
M
.add
(n,
'
div',
{id
:
'
mce
_f
ullscreen
'
}
);
|
124 |
|
|
|
76 |
|
|
125 |
|
retu
rn false;
|
|
77 |
|
tinymce.ea
ch(ed.sett
ings, func
tion(v, n)
{
|
|
|
78 |
|
s[n] =
v;
|
126 |
|
});
|
|
79 |
|
});
|
127 |
|
|
|
80 |
|
|
128 |
|
if (re)
|
|
81 |
|
s.id = 'mc
e_fullscre
en';
|
129 |
|
re.s
tyle.displ
ay = 'none
';
|
|
82 |
|
s.width =
n.clientWi
dth;
|
130 |
|
|
|
83 |
|
s.height =
n.clientH
eight - 15
;
|
131 |
|
vp = tin
yMCE.getVi
ewPort(cw)
;
|
|
84 |
|
s.fullscre
en_is_enab
led = true
;
|
132 |
|
|
|
85 |
|
s.fullscre
en_editor_
id = ed.id
;
|
133 |
|
ds.oldWi
dth = ifra
me.style.w
idth ? ifr
ame.style.
width : if
rame.offse
tWidth;
|
|
86 |
|
s.theme_ad
vanced_res
izing = fa
lse;
|
134 |
|
ds.oldHe
ight = ifr
ame.style.
height ? i
frame.styl
e.height :
iframe.of
fsetHeight
;
|
|
87 |
|
s.save_ons
avecallbac
k = functi
on() {
|
135 |
|
ds.oldTW
idth = tab
leElm.styl
e.width ?
tableElm.s
tyle.width
: tableEl
m.offsetWi
dth;
|
|
88 |
|
ed.set
Content(ti
nyMCE.get(
s.id).getC
ontent({fo
rmat : 'ra
w'}), {for
mat : 'raw
'});
|
136 |
|
ds.oldTH
eight = ta
bleElm.sty
le.height
? tableElm
.style.hei
ght : tabl
eElm.offse
tHeight;
|
|
89 |
|
ed.exe
cCommand('
mceSave');
|
137 |
|
|
|
90 |
|
};
|
138 |
|
// Handl
e % width
|
|
|
139 |
|
if (ds.o
ldWidth &&
ds.oldWid
th.indexOf
)
|
|
|
140 |
|
ds.o
ldTWidth =
ds.oldWid
th.indexOf
('%') != -
1 ? ds.old
Width : ds
.oldTWidth
;
|
|
|
141 |
|
|
|
|
142 |
|
if (!blo
&& tinyMC
E.isRealIE
) {
|
|
|
143 |
|
blo
= tinyMCE.
createTag(
document,
'iframe',
{id : 'mce
_fullscree
n_blocker'
, src : 'a
bout:blank
', frameBo
rder : 0,
width : vp
.width, he
ight : vp.
height, st
yle : 'dis
play: bloc
k; positio
n: absolut
e; left: 0
; top: 0;
z-index: 9
99; margin
: 0; paddi
ng: 0;'});
|
|
|
144 |
|
docu
ment.body.
appendChil
d(blo);
|
|
|
145 |
|
}
|
|
|
146 |
|
|
|
|
147 |
|
tableElm
.style.pos
ition = 'a
bsolute';
|
|
|
148 |
|
tableElm
.style.zIn
dex = 1000
;
|
|
|
149 |
|
tableElm
.style.lef
t = tableE
lm.style.t
op = '0';
|
|
|
150 |
|
|
|
|
151 |
|
tableElm
.style.wid
th = vp.wi
dth + 'px'
;
|
|
|
152 |
|
tableElm
.style.hei
ght = vp.h
eight + 'p
x';
|
|
|
153 |
|
|
|
|
154 |
|
if (tiny
MCE.isReal
IE) {
|
|
|
155 |
|
ifra
me.style.w
idth = vp.
width + 'p
x';
|
|
|
156 |
|
ifra
me.style.h
eight = vp
.height +
'px';
|
|
|
157 |
|
|
|
91 |
|
|
158 |
|
// C
alc new wi
dth/height
based on
overflow
|
|
92 |
|
tinymce.ea
ch(ed.getP
aram('full
screen_set
tings'), f
unction(v,
k) {
|
159 |
|
w =
iframe.par
entNode.cl
ientWidth
- (tableEl
m.offsetWi
dth - vp.w
idth);
|
|
93 |
|
s[k] =
v;
|
160 |
|
h =
iframe.par
entNode.cl
ientHeight
- (tableE
lm.offsetH
eight - vp
.height);
|
|
94 |
|
}
);
|
161 |
|
} else {
|
|
|
162 |
|
w =
iframe.par
entNode.cl
ientWidth;
|
|
|
163 |
|
h =
iframe.par
entNode.cl
ientHeight
;
|
|
|
164 |
|
}
|
|
|
165 |
|
|
|
95 |
|
|
166 |
|
iframe.s
tyle.width
= w + "px
";
|
|
96 |
|
if (s.them
e_advanced
_toolbar_l
ocation ==
= 'externa
l')
|
167 |
|
iframe.s
tyle.heigh
t = (h+del
ta) + "px"
;
|
|
97 |
|
s.them
e_advanced
_toolbar_l
ocation =
'top';
|
168 |
|
|
|
98 |
|
|
169 |
|
tinyMCE.
switchClas
s(inst.edi
torId + '_
fullscreen
', 'mceBut
tonSelecte
d');
|
|
99 |
|
t.fullscre
enEditor =
new tinym
ce.Editor(
'mce_fulls
creen', s)
;
|
170 |
|
ds.enabl
ed = true;
|
|
100 |
|
t.fullscre
enEditor.o
nInit.add(
function()
{
|
|
|
101 |
|
t.full
screenEdit
or.setCont
ent(ed.get
Content())
;
|
|
|
102 |
|
});
|
171 |
|
|
|
103 |
|
|
172 |
|
inst.use
CSS = fals
e;
|
|
104 |
|
t.fullscre
enEditor.r
ender();
|
173 |
|
}
else {
|
|
105 |
|
tinyMCE.ad
d(t.fullsc
reenEditor
);
|
174 |
|
// Handl
e External
Toolbar
|
|
|
175 |
|
if (inst
.toolbarEl
ement) {
|
|
|
176 |
|
row
= inst.too
lbarElemen
t.parentNo
de.parentN
ode;
|
|
|
177 |
|
|
|
106 |
|
|
178 |
|
row.
parentNode
.removeChi
ld(row);
|
|
107 |
|
t.fullscre
enElement
= new tiny
mce.dom.El
ement('mce
_fullscree
n_containe
r');
|
|
|
108 |
|
t.fullscre
enElement.
update();
|
|
|
109 |
|
//document
.body.over
flow = 'hi
dden';
|
179 |
|
|
|
110 |
|
|
180 |
|
ds.o
ldToolbarP
arent.repl
aceChild(i
nst.toolba
rElement,
ds.toolbar
Holder);
|
|
111 |
|
t.resizeFu
nc = tinym
ce.dom.Eve
nt.add(win
dow, 'resi
ze', funct
ion() {
|
|
|
112 |
|
var vp
= tinymce
.DOM.getVi
ewPort();
|
181 |
|
|
|
113 |
|
|
182 |
|
ds.o
ldToolbarP
arent = nu
ll;
|
|
114 |
|
t.full
screenEdit
or.theme.r
esizeTo(vp
.w, vp.h);
|
183 |
|
ds.t
oolbarHold
er = null;
|
|
115 |
|
});
|
184 |
|
}
|
|
116 |
|
}
|
185 |
|
|
|
|
186 |
|
if (blo)
|
|
|
187 |
|
blo.
parentNode
.removeChi
ld(blo);
|
|
|
188 |
|
|
|
|
189 |
|
si = 0;
|
|
|
190 |
|
tinyMCE.
getParentN
ode(tableE
lm.parentN
ode, funct
ion (n) {
|
|
|
191 |
|
if (
n.nodeName
== 'BODY'
)
|
|
|
192 |
|
return tru
e;
|
|
|
193 |
|
|
|
|
194 |
|
if (
n.nodeType
== 1)
|
|
|
195 |
|
tinyMCE.re
moveCSSCla
ss(n, 'mce
Fullscreen
Pos');
|
|
|
196 |
|
});
|
|
117 |
|
});
|
197 |
|
|
|
118 |
|
|
198 |
|
if (re &
& tinyMCE.
getParam("
theme_adva
nced_resiz
ing", fals
e))
|
|
119 |
|
// Regis
ter button
s
|
199 |
|
re.s
tyle.displ
ay = 'bloc
k';
|
|
120 |
|
ed.addBu
tton('full
screen', {
title : 'f
ullscreen.
desc', cmd
: 'mceFul
lScreen'})
;
|
200 |
|
|
|
|
201 |
|
tableElm
.style.pos
ition = 's
tatic';
|
|
|
202 |
|
tableElm
.style.zIn
dex = '';
|
|
|
203 |
|
tableElm
.style.wid
th = '';
|
|
|
204 |
|
tableElm
.style.hei
ght = '';
|
|
|
205 |
|
|
|
121 |
|
|
206 |
|
tableElm
.style.wid
th = ds.ol
dTWidth ?
ds.oldTWid
th : '';
|
|
122 |
|
ed.onNod
eChange.ad
d(function
(ed, cm) {
|
207 |
|
tableElm
.style.hei
ght = ds.o
ldTHeight
? ds.oldTH
eight : ''
;
|
|
123 |
|
cm.s
etActive('
fullscreen
', ed.getP
aram('full
screen_is_
enabled'))
;
|
208 |
|
|
|
124 |
|
}
);
|
209 |
|
iframe.s
tyle.width
= ds.oldW
idth ? ds.
oldWidth :
'';
|
|
|
210 |
|
iframe.s
tyle.heigh
t = ds.old
Height ? d
s.oldHeigh
t : '';
|
|
|
211 |
|
|
|
|
212 |
|
tinyMCE.
switchClas
s(inst.edi
torId + '_
fullscreen
', 'mceBut
tonNormal'
);
|
|
|
213 |
|
ds.enabl
ed = false
;
|
|
|
214 |
|
|
|
|
215 |
|
tinyMCE.
removeCSSC
lass(cd.bo
dy, 'mceFu
llscreen')
;
|
|
|
216 |
|
cw.scrol
lTo(ds.scr
ollX, ds.s
crollY);
|
|
|
217 |
|
|
|
|
218 |
|
inst.use
CSS = fals
e;
|
|
|
219 |
|
}
|
|
|
220 |
|
},
|
|
125 |
|
},
|
221 |
|
|
|
126 |
|
|
222 |
|
handle
NodeChange
: functio
n(editor_i
d, node, u
ndo_index,
undo_leve
ls, visual
_aid, any_
selection)
{
|
|
127 |
|
ge
tInfo : fu
nction() {
|
223 |
|
if
(tinyMCE.
getParam('
fullscreen
_is_enable
d'))
|
|
128 |
|
return
{
|
224 |
|
tinyMCE.
switchClas
s(editor_i
d + '_full
screen', '
mceButtonS
elected');
|
|
129 |
|
long
name : 'Fu
llscreen',
|
225 |
|
|
|
130 |
|
auth
or : 'Moxi
ecode Syst
ems AB',
|
226 |
|
return
true;
|
|
131 |
|
auth
orurl : 'h
ttp://tiny
mce.moxiec
ode.com',
|
227 |
|
}
|
|
132 |
|
info
url : 'htt
p://wiki.m
oxiecode.c
om/index.p
hp/TinyMCE
:Plugins/f
ullscreen'
,
|
|
|
133 |
|
vers
ion : tiny
mce.majorV
ersion + "
." + tinym
ce.minorVe
rsion
|
228 |
|
};
|
|
134 |
|
};
|
|
|
135 |
|
}
|
|
|
136 |
|
});
|
229 |
|
|
|
137 |
|
|
230 |
|
tiny
MCE
.
add
Plugin
(
"
fullscreen
"
,
T
iny
MCE_
FullScreen
Plugin);
|
|
138 |
|
// Reg
ister plug
in
|
|
|
139 |
|
tiny
mce
.
Plugin
Manager.ad
d
(
'
fullscreen
'
,
t
iny
mce.plugin
s.
FullScreen
Plugin);
|
|
|
140 |
|
})();
|