Initial checkin
This commit is contained in:
commit
d75eb444fc
4304 changed files with 369634 additions and 0 deletions
29
thirdparty/tiny/plugins/preview/.svn/all-wcprops
vendored
Normal file
29
thirdparty/tiny/plugins/preview/.svn/all-wcprops
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 55
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview
|
||||
END
|
||||
editor_plugin.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 72
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/editor_plugin.js
|
||||
END
|
||||
preview.html
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/preview.html
|
||||
END
|
||||
editor_plugin_src.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 76
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/editor_plugin_src.js
|
||||
END
|
||||
example.html
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 68
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/example.html
|
||||
END
|
167
thirdparty/tiny/plugins/preview/.svn/entries
vendored
Normal file
167
thirdparty/tiny/plugins/preview/.svn/entries
vendored
Normal file
|
@ -0,0 +1,167 @@
|
|||
9
|
||||
|
||||
dir
|
||||
34
|
||||
http://svn.astat.org/astat/trunk/thirdparty/tiny/plugins/preview
|
||||
http://svn.astat.org/astat
|
||||
|
||||
|
||||
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
svn:special svn:externals svn:needs-lock
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bb7ccd2a-c66b-0410-9765-967ca6f03dfc
|
||||
|
||||
editor_plugin.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:27.000000Z
|
||||
7bcbf12854d82cd45f7b4a9ec17f7391
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
988
|
||||
|
||||
jscripts
|
||||
dir
|
||||
|
||||
preview.html
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:27.000000Z
|
||||
68ed4a06f904c41e9ba8ad4997d6626c
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
563
|
||||
|
||||
editor_plugin_src.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:27.000000Z
|
||||
c24dd47c4c6bcf32f5059f077a8d9ad2
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1437
|
||||
|
||||
example.html
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:27.000000Z
|
||||
9b9290408ae10fa29ec29db60682be91
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
731
|
||||
|
1
thirdparty/tiny/plugins/preview/.svn/format
vendored
Normal file
1
thirdparty/tiny/plugins/preview/.svn/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
9
|
1
thirdparty/tiny/plugins/preview/.svn/text-base/editor_plugin.js.svn-base
vendored
Normal file
1
thirdparty/tiny/plugins/preview/.svn/text-base/editor_plugin.js.svn-base
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
(function(){tinymce.create('tinymce.plugins.Preview',{init:function(ed,url){var t=this,css=tinymce.explode(ed.settings.content_css);t.editor=ed;tinymce.each(css,function(u,k){css[k]=ed.documentBaseURI.toAbsolute(u);});ed.addCommand('mcePreview',function(){ed.windowManager.open({file:ed.getParam("plugin_preview_pageurl",url+"/preview.html"),width:parseInt(ed.getParam("plugin_preview_width","550")),height:parseInt(ed.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:css.join(','),inline:ed.getParam("plugin_preview_inline",1)},{base:ed.documentBaseURI.getURI()});});ed.addButton('preview',{title:'preview.preview_desc',cmd:'mcePreview'});},getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('preview',tinymce.plugins.Preview);})();
|
50
thirdparty/tiny/plugins/preview/.svn/text-base/editor_plugin_src.js.svn-base
vendored
Normal file
50
thirdparty/tiny/plugins/preview/.svn/text-base/editor_plugin_src.js.svn-base
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/**
|
||||
* $Id: editor_plugin_src.js 895 2008-07-10 14:34:23Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.Preview', {
|
||||
init : function(ed, url) {
|
||||
var t = this, css = tinymce.explode(ed.settings.content_css);
|
||||
|
||||
t.editor = ed;
|
||||
|
||||
// Force absolute CSS urls
|
||||
tinymce.each(css, function(u, k) {
|
||||
css[k] = ed.documentBaseURI.toAbsolute(u);
|
||||
});
|
||||
|
||||
ed.addCommand('mcePreview', function() {
|
||||
ed.windowManager.open({
|
||||
file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"),
|
||||
width : parseInt(ed.getParam("plugin_preview_width", "550")),
|
||||
height : parseInt(ed.getParam("plugin_preview_height", "600")),
|
||||
resizable : "yes",
|
||||
scrollbars : "yes",
|
||||
popup_css : css.join(','),
|
||||
inline : ed.getParam("plugin_preview_inline", 1)
|
||||
}, {
|
||||
base : ed.documentBaseURI.getURI()
|
||||
});
|
||||
});
|
||||
|
||||
ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Preview',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('preview', tinymce.plugins.Preview);
|
||||
})();
|
28
thirdparty/tiny/plugins/preview/.svn/text-base/example.html.svn-base
vendored
Normal file
28
thirdparty/tiny/plugins/preview/.svn/text-base/example.html.svn-base
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="jscripts/embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCEPopup.onInit.add(function(ed) {
|
||||
var dom = tinyMCEPopup.dom;
|
||||
|
||||
// Load editor content_css
|
||||
tinymce.each(ed.settings.content_css.split(','), function(u) {
|
||||
dom.loadCSS(ed.documentBaseURI.toAbsolute(u));
|
||||
});
|
||||
|
||||
// Place contents inside div container
|
||||
dom.setHTML('content', ed.getContent());
|
||||
});
|
||||
</script>
|
||||
<title>Example of a custom preview page</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Editor contents: <br />
|
||||
<div id="content">
|
||||
<!-- Gets filled with editor contents -->
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
19
thirdparty/tiny/plugins/preview/.svn/text-base/preview.html.svn-base
vendored
Normal file
19
thirdparty/tiny/plugins/preview/.svn/text-base/preview.html.svn-base
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="jscripts/embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCEPopup.onInit.add(function(ed) {
|
||||
var dom = tinyMCEPopup.dom;
|
||||
|
||||
dom.setHTML('content', ed.getContent());
|
||||
});
|
||||
|
||||
document.write('<base href="' + tinyMCEPopup.getWindowArg("base") + '">');
|
||||
</script>
|
||||
<title>{#preview.preview_desc}</title>
|
||||
</head>
|
||||
<body id="content">
|
||||
<!-- Gets filled with editor contents -->
|
||||
</body>
|
||||
</html>
|
1
thirdparty/tiny/plugins/preview/editor_plugin.js
vendored
Normal file
1
thirdparty/tiny/plugins/preview/editor_plugin.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
(function(){tinymce.create('tinymce.plugins.Preview',{init:function(ed,url){var t=this,css=tinymce.explode(ed.settings.content_css);t.editor=ed;tinymce.each(css,function(u,k){css[k]=ed.documentBaseURI.toAbsolute(u);});ed.addCommand('mcePreview',function(){ed.windowManager.open({file:ed.getParam("plugin_preview_pageurl",url+"/preview.html"),width:parseInt(ed.getParam("plugin_preview_width","550")),height:parseInt(ed.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:css.join(','),inline:ed.getParam("plugin_preview_inline",1)},{base:ed.documentBaseURI.getURI()});});ed.addButton('preview',{title:'preview.preview_desc',cmd:'mcePreview'});},getInfo:function(){return{longname:'Preview',author:'Moxiecode Systems AB',authorurl:'http://tinymce.moxiecode.com',infourl:'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',version:tinymce.majorVersion+"."+tinymce.minorVersion};}});tinymce.PluginManager.add('preview',tinymce.plugins.Preview);})();
|
50
thirdparty/tiny/plugins/preview/editor_plugin_src.js
vendored
Normal file
50
thirdparty/tiny/plugins/preview/editor_plugin_src.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/**
|
||||
* $Id: editor_plugin_src.js 895 2008-07-10 14:34:23Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.Preview', {
|
||||
init : function(ed, url) {
|
||||
var t = this, css = tinymce.explode(ed.settings.content_css);
|
||||
|
||||
t.editor = ed;
|
||||
|
||||
// Force absolute CSS urls
|
||||
tinymce.each(css, function(u, k) {
|
||||
css[k] = ed.documentBaseURI.toAbsolute(u);
|
||||
});
|
||||
|
||||
ed.addCommand('mcePreview', function() {
|
||||
ed.windowManager.open({
|
||||
file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"),
|
||||
width : parseInt(ed.getParam("plugin_preview_width", "550")),
|
||||
height : parseInt(ed.getParam("plugin_preview_height", "600")),
|
||||
resizable : "yes",
|
||||
scrollbars : "yes",
|
||||
popup_css : css.join(','),
|
||||
inline : ed.getParam("plugin_preview_inline", 1)
|
||||
}, {
|
||||
base : ed.documentBaseURI.getURI()
|
||||
});
|
||||
});
|
||||
|
||||
ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Preview',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('preview', tinymce.plugins.Preview);
|
||||
})();
|
28
thirdparty/tiny/plugins/preview/example.html
vendored
Normal file
28
thirdparty/tiny/plugins/preview/example.html
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="jscripts/embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCEPopup.onInit.add(function(ed) {
|
||||
var dom = tinyMCEPopup.dom;
|
||||
|
||||
// Load editor content_css
|
||||
tinymce.each(ed.settings.content_css.split(','), function(u) {
|
||||
dom.loadCSS(ed.documentBaseURI.toAbsolute(u));
|
||||
});
|
||||
|
||||
// Place contents inside div container
|
||||
dom.setHTML('content', ed.getContent());
|
||||
});
|
||||
</script>
|
||||
<title>Example of a custom preview page</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Editor contents: <br />
|
||||
<div id="content">
|
||||
<!-- Gets filled with editor contents -->
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
11
thirdparty/tiny/plugins/preview/jscripts/.svn/all-wcprops
vendored
Normal file
11
thirdparty/tiny/plugins/preview/jscripts/.svn/all-wcprops
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 64
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/jscripts
|
||||
END
|
||||
embed.js
|
||||
K 25
|
||||
svn:wc:ra_dav:version-url
|
||||
V 73
|
||||
/astat/!svn/ver/1/trunk/thirdparty/tiny/plugins/preview/jscripts/embed.js
|
||||
END
|
62
thirdparty/tiny/plugins/preview/jscripts/.svn/entries
vendored
Normal file
62
thirdparty/tiny/plugins/preview/jscripts/.svn/entries
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
9
|
||||
|
||||
dir
|
||||
34
|
||||
http://svn.astat.org/astat/trunk/thirdparty/tiny/plugins/preview/jscripts
|
||||
http://svn.astat.org/astat
|
||||
|
||||
|
||||
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
svn:special svn:externals svn:needs-lock
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bb7ccd2a-c66b-0410-9765-967ca6f03dfc
|
||||
|
||||
embed.js
|
||||
file
|
||||
|
||||
|
||||
|
||||
|
||||
2009-06-08T19:44:27.000000Z
|
||||
39ebc57f44e1cc683724e1c1ff761894
|
||||
2009-06-07T19:12:55.973801Z
|
||||
1
|
||||
genuineparts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1938
|
||||
|
1
thirdparty/tiny/plugins/preview/jscripts/.svn/format
vendored
Normal file
1
thirdparty/tiny/plugins/preview/jscripts/.svn/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
9
|
73
thirdparty/tiny/plugins/preview/jscripts/.svn/text-base/embed.js.svn-base
vendored
Normal file
73
thirdparty/tiny/plugins/preview/jscripts/.svn/text-base/embed.js.svn-base
vendored
Normal file
|
@ -0,0 +1,73 @@
|
|||
/**
|
||||
* This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
|
||||
*/
|
||||
|
||||
function writeFlash(p) {
|
||||
writeEmbed(
|
||||
'D27CDB6E-AE6D-11cf-96B8-444553540000',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
||||
'application/x-shockwave-flash',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeShockWave(p) {
|
||||
writeEmbed(
|
||||
'166B1BCA-3F9C-11CF-8075-444553540000',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
|
||||
'application/x-director',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeQuickTime(p) {
|
||||
writeEmbed(
|
||||
'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
|
||||
'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
|
||||
'video/quicktime',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeRealMedia(p) {
|
||||
writeEmbed(
|
||||
'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
||||
'audio/x-pn-realaudio-plugin',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeWindowsMedia(p) {
|
||||
p.url = p.src;
|
||||
writeEmbed(
|
||||
'6BF52A52-394A-11D3-B153-00C04F79FAA6',
|
||||
'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
|
||||
'application/x-mplayer2',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeEmbed(cls, cb, mt, p) {
|
||||
var h = '', n;
|
||||
|
||||
h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
|
||||
h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
|
||||
h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
|
||||
h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
|
||||
h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
|
||||
h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
|
||||
h += '>';
|
||||
|
||||
for (n in p)
|
||||
h += '<param name="' + n + '" value="' + p[n] + '">';
|
||||
|
||||
h += '<embed type="' + mt + '"';
|
||||
|
||||
for (n in p)
|
||||
h += n + '="' + p[n] + '" ';
|
||||
|
||||
h += '></embed></object>';
|
||||
|
||||
document.write(h);
|
||||
}
|
73
thirdparty/tiny/plugins/preview/jscripts/embed.js
vendored
Normal file
73
thirdparty/tiny/plugins/preview/jscripts/embed.js
vendored
Normal file
|
@ -0,0 +1,73 @@
|
|||
/**
|
||||
* This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
|
||||
*/
|
||||
|
||||
function writeFlash(p) {
|
||||
writeEmbed(
|
||||
'D27CDB6E-AE6D-11cf-96B8-444553540000',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
||||
'application/x-shockwave-flash',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeShockWave(p) {
|
||||
writeEmbed(
|
||||
'166B1BCA-3F9C-11CF-8075-444553540000',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
|
||||
'application/x-director',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeQuickTime(p) {
|
||||
writeEmbed(
|
||||
'02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
|
||||
'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
|
||||
'video/quicktime',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeRealMedia(p) {
|
||||
writeEmbed(
|
||||
'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
|
||||
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
|
||||
'audio/x-pn-realaudio-plugin',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeWindowsMedia(p) {
|
||||
p.url = p.src;
|
||||
writeEmbed(
|
||||
'6BF52A52-394A-11D3-B153-00C04F79FAA6',
|
||||
'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
|
||||
'application/x-mplayer2',
|
||||
p
|
||||
);
|
||||
}
|
||||
|
||||
function writeEmbed(cls, cb, mt, p) {
|
||||
var h = '', n;
|
||||
|
||||
h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
|
||||
h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
|
||||
h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
|
||||
h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
|
||||
h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
|
||||
h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
|
||||
h += '>';
|
||||
|
||||
for (n in p)
|
||||
h += '<param name="' + n + '" value="' + p[n] + '">';
|
||||
|
||||
h += '<embed type="' + mt + '"';
|
||||
|
||||
for (n in p)
|
||||
h += n + '="' + p[n] + '" ';
|
||||
|
||||
h += '></embed></object>';
|
||||
|
||||
document.write(h);
|
||||
}
|
19
thirdparty/tiny/plugins/preview/preview.html
vendored
Normal file
19
thirdparty/tiny/plugins/preview/preview.html
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language="javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="jscripts/embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
tinyMCEPopup.onInit.add(function(ed) {
|
||||
var dom = tinyMCEPopup.dom;
|
||||
|
||||
dom.setHTML('content', ed.getContent());
|
||||
});
|
||||
|
||||
document.write('<base href="' + tinyMCEPopup.getWindowArg("base") + '">');
|
||||
</script>
|
||||
<title>{#preview.preview_desc}</title>
|
||||
</head>
|
||||
<body id="content">
|
||||
<!-- Gets filled with editor contents -->
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue