This commit is contained in:
Éric Lemoine
2013-02-20 10:38:25 +01:00
parent 17c3936ab6
commit 5d14b9e2d4
1919 changed files with 559755 additions and 2588 deletions

View File

@@ -0,0 +1,69 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Editor File Upload Plugin</title>
<style type="text/css">
@import "../../../dojo/resources/dojo.css";
@import "../../../dijit/themes/tundra/tundra.css";
@import "../../../dijit/themes/dijit.css";
</style>
<link href="../../form/resources/FileInput.css" type="text/css" rel="stylesheet" />
<link href="../plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
passthrough = function(msg){
//for catching messages from Flash
if(window.console){
console.log(msg);
}
}
var djConfig = {
isDebug: false,
parseOnLoad: true,
debugAtAllCosts:false
//popup:true,
//forceFirebugLite:true
};
</script>
<script type="text/javascript" src="../../../dojo/dojo.js"></script>
<script>
dojo.require("dojo.parser");
dojo.require("dijit.Editor");
dojo.require("dojox.editor.plugins.UploadImage");
dojo.addOnLoad(function(){
//
});
</script>
<style>
#main{
width:auto;
margin:20px 100px;
}
</style>
</head>
<body class="tundra">
<div id="main">
<div dojoType="dijit.Editor" plugins="[
'undo', 'redo', 'bold','italic','underline','|', 'copy', 'cut',
'paste','|',
{name: 'dojox.editor.plugins.UploadImage', command: 'uploadImage',
uploadUrl:'../../form/resources/UploadFile.php',
downloadPath:'../../form/resources/uploads/', tempImageUrl:'../plugins/resources/images/busy.gif'}
]">
<p>Click the upload icon to open a system dialog. Note that this will need to call a server script for the upload to work.</p>
<p>
<font style="font-size:10px; color:#999;"><strong>Test Disclaimers:</strong><br />
A PHP test file is being used for server code.<br />
Folder permissions will need to be set to system level for uploads to work on your local system.<br />
The code uses the GD library (to get image sizes), that sometimes is not pre-installed in a standard PHP build.</font>
</p>
</div>
</div>
</body>
</html>