Initial checkin

This commit is contained in:
genuineparts 2025-06-20 19:10:23 +02:00
commit d75eb444fc
4304 changed files with 369634 additions and 0 deletions

View 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

View 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

View file

@ -0,0 +1 @@
9

View 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);})();

View 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);
})();

View 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>

View 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>