Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F6063562
editor_plugin.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
editor_plugin.js
View Options
(
function
(){
tinymce
.
create
(
"tinymce.plugins.PageBreakPlugin"
,{
init
:
function
(
b
,
d
){
var
f
=
'<img src="'
+
b
.
theme
.
url
+
'/img/trans.gif" class="mcePageBreak mceItemNoResize" />'
,
a
=
"mcePageBreak"
,
c
=
b
.
getParam
(
"pagebreak_separator"
,
"<!-- pagebreak -->"
),
e
;
e
=
new
RegExp
(
c
.
replace
(
/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g
,
function
(
g
){
return
"\\"
+
g
}),
"g"
);
b
.
addCommand
(
"mcePageBreak"
,
function
(){
b
.
execCommand
(
"mceInsertContent"
,
0
,
f
)});
b
.
addButton
(
"pagebreak"
,{
title
:
"pagebreak.desc"
,
cmd
:
a
});
b
.
onInit
.
add
(
function
(){
if
(
b
.
theme
.
onResolveName
){
b
.
theme
.
onResolveName
.
add
(
function
(
g
,
h
){
if
(
h
.
node
.
nodeName
==
"IMG"
&&
b
.
dom
.
hasClass
(
h
.
node
,
a
)){
h
.
name
=
"pagebreak"
}})}});
b
.
onClick
.
add
(
function
(
g
,
h
){
h
=
h
.
target
;
if
(
h
.
nodeName
===
"IMG"
&&
g
.
dom
.
hasClass
(
h
,
a
)){
g
.
selection
.
select
(
h
)}});
b
.
onNodeChange
.
add
(
function
(
h
,
g
,
i
){
g
.
setActive
(
"pagebreak"
,
i
.
nodeName
===
"IMG"
&&
h
.
dom
.
hasClass
(
i
,
a
))});
b
.
onBeforeSetContent
.
add
(
function
(
g
,
h
){
h
.
content
=
h
.
content
.
replace
(
e
,
f
)});
b
.
onPostProcess
.
add
(
function
(
g
,
h
){
if
(
h
.
get
){
h
.
content
=
h
.
content
.
replace
(
/<img[^>]+>/g
,
function
(
i
){
if
(
i
.
indexOf
(
'class="mcePageBreak'
)
!==-
1
){
i
=
c
}
return
i
})}})},
getInfo
:
function
(){
return
{
longname
:
"PageBreak"
,
author
:
"Moxiecode Systems AB"
,
authorurl
:
"http://tinymce.moxiecode.com"
,
infourl
:
"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak"
,
version
:
tinymce
.
majorVersion
+
"."
+
tinymce
.
minorVersion
}}});
tinymce
.
PluginManager
.
add
(
"pagebreak"
,
tinymce
.
plugins
.
PageBreakPlugin
)})();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 4:08 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
558382
Default Alt Text
editor_plugin.js (1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment