Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9784365
editor_plugin.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
editor_plugin.js
View Options
(
function
(){
tinymce
.
create
(
'tinymce.plugins.XHTMLXtrasPlugin'
,{
init
:
function
(
ed
,
url
){
ed
.
addCommand
(
'mceCite'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/cite.htm'
,
width
:
350
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.cite_delta_width'
,
0
)),
height
:
250
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.cite_delta_height'
,
0
)),
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addCommand
(
'mceAcronym'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/acronym.htm'
,
width
:
350
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.acronym_delta_width'
,
0
)),
height
:
250
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.acronym_delta_width'
,
0
)),
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addCommand
(
'mceAbbr'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/abbr.htm'
,
width
:
350
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.abbr_delta_width'
,
0
)),
height
:
250
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.abbr_delta_width'
,
0
)),
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addCommand
(
'mceDel'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/del.htm'
,
width
:
340
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.del_delta_width'
,
0
)),
height
:
310
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.del_delta_width'
,
0
)),
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addCommand
(
'mceIns'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/ins.htm'
,
width
:
340
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.ins_delta_width'
,
0
)),
height
:
310
+
parseInt
(
ed
.
getLang
(
'xhtmlxtras.ins_delta_width'
,
0
)),
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addCommand
(
'mceAttributes'
,
function
(){
ed
.
windowManager
.
open
({
file
:
url
+
'/attributes.htm'
,
width
:
380
,
height
:
370
,
inline
:
1
},{
plugin_url
:
url
});});
ed
.
addButton
(
'cite'
,{
title
:
'xhtmlxtras.cite_desc'
,
cmd
:
'mceCite'
});
ed
.
addButton
(
'acronym'
,{
title
:
'xhtmlxtras.acronym_desc'
,
cmd
:
'mceAcronym'
});
ed
.
addButton
(
'abbr'
,{
title
:
'xhtmlxtras.abbr_desc'
,
cmd
:
'mceAbbr'
});
ed
.
addButton
(
'del'
,{
title
:
'xhtmlxtras.del_desc'
,
cmd
:
'mceDel'
});
ed
.
addButton
(
'ins'
,{
title
:
'xhtmlxtras.ins_desc'
,
cmd
:
'mceIns'
});
ed
.
addButton
(
'attribs'
,{
title
:
'xhtmlxtras.attribs_desc'
,
cmd
:
'mceAttributes'
});
if
(
tinymce
.
isIE
){
function
fix
(
ed
,
o
){
if
(
o
.
set
){
o
.
content
=
o
.
content
.
replace
(
/<abbr([^>]+)>/gi
,
'<html:abbr $1>'
);
o
.
content
=
o
.
content
.
replace
(
/<\/abbr>/gi
,
'</html:abbr>'
);}};
ed
.
onBeforeSetContent
.
add
(
fix
);
ed
.
onPostProcess
.
add
(
fix
);}
ed
.
onNodeChange
.
add
(
function
(
ed
,
cm
,
n
,
co
){
n
=
ed
.
dom
.
getParent
(
n
,
'CITE,ACRONYM,ABBR,DEL,INS'
);
cm
.
setDisabled
(
'cite'
,
co
);
cm
.
setDisabled
(
'acronym'
,
co
);
cm
.
setDisabled
(
'abbr'
,
co
);
cm
.
setDisabled
(
'del'
,
co
);
cm
.
setDisabled
(
'ins'
,
co
);
cm
.
setDisabled
(
'attribs'
,
n
&&
n
.
nodeName
==
'BODY'
);
if
(
n
){
cm
.
setDisabled
(
n
.
nodeName
.
toLowerCase
(),
0
);
cm
.
setActive
(
n
.
nodeName
.
toLowerCase
(),
1
);}
else
{
cm
.
setActive
(
'cite'
,
0
);
cm
.
setActive
(
'acronym'
,
0
);
cm
.
setActive
(
'abbr'
,
0
);
cm
.
setActive
(
'del'
,
0
);
cm
.
setActive
(
'ins'
,
0
);}});},
getInfo
:
function
(){
return
{
longname
:
'XHTML Xtras Plugin'
,
author
:
'Moxiecode Systems AB'
,
authorurl
:
'http://tinymce.moxiecode.com'
,
infourl
:
'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras'
,
version
:
tinymce
.
majorVersion
+
"."
+
tinymce
.
minorVersion
};}});
tinymce
.
PluginManager
.
add
(
'xhtmlxtras'
,
tinymce
.
plugins
.
XHTMLXtrasPlugin
);})();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 17, 11:15 AM (8 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1240123
Default Alt Text
editor_plugin.js (2 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment