Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8196236
plugin.min.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
plugin.min.js
View Options
tinymce
.
PluginManager
.
add
(
"preview"
,
function
(
a
){
var
b
=
a
.
settings
,
c
=!
tinymce
.
Env
.
ie
;
a
.
addCommand
(
"mcePreview"
,
function
(){
a
.
windowManager
.
open
({
title
:
"Preview"
,
width
:
parseInt
(
a
.
getParam
(
"plugin_preview_width"
,
"650"
),
10
),
height
:
parseInt
(
a
.
getParam
(
"plugin_preview_height"
,
"500"
),
10
),
html
:
'<iframe src="javascript:\'\'" frameborder="0"'
+
(
c
?
' sandbox="allow-scripts"'
:
""
)
+
"></iframe>"
,
buttons
:
{
text
:
"Close"
,
onclick
:
function
(){
this
.
parent
().
parent
().
close
()}},
onPostRender
:
function
(){
var
d
,
e
=
""
;
e
+=
'<base href="'
+
a
.
documentBaseURI
.
getURI
()
+
'">'
,
tinymce
.
each
(
a
.
contentCSS
,
function
(
b
){
e
+=
'<link type="text/css" rel="stylesheet" href="'
+
a
.
documentBaseURI
.
toAbsolute
(
b
)
+
'">'
});
var
f
=
b
.
body_id
||
"tinymce"
;
-
1
!=
f
.
indexOf
(
"="
)
&&
(
f
=
a
.
getParam
(
"body_id"
,
""
,
"hash"
),
f
=
f
[
a
.
id
]
||
f
);
var
g
=
b
.
body_class
||
""
;
-
1
!=
g
.
indexOf
(
"="
)
&&
(
g
=
a
.
getParam
(
"body_class"
,
""
,
"hash"
),
g
=
g
[
a
.
id
]
||
""
);
var
h
=
a
.
settings
.
directionality
?
' dir="'
+
a
.
settings
.
directionality
+
'"'
:
""
;
if
(
d
=
"<!DOCTYPE html><html><head>"
+
e
+
'</head><body id="'
+
f
+
'" class="mce-content-body '
+
g
+
'"'
+
h
+
">"
+
a
.
getContent
()
+
"</body></html>"
,
c
)
this
.
getEl
(
"body"
).
firstChild
.
src
=
"data:text/html;charset=utf-8,"
+
encodeURIComponent
(
d
);
else
{
var
i
=
this
.
getEl
(
"body"
).
firstChild
.
contentWindow
.
document
;
i
.
open
(),
i
.
write
(
d
),
i
.
close
()}}})}),
a
.
addButton
(
"preview"
,{
title
:
"Preview"
,
cmd
:
"mcePreview"
}),
a
.
addMenuItem
(
"preview"
,{
text
:
"Preview"
,
cmd
:
"mcePreview"
,
context
:
"view"
})});
File Metadata
Details
Attached
Mime Type
text/html
Expires
Wed, Jul 8, 3:51 PM (3 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051319
Default Alt Text
plugin.min.js (1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment