Debian Codegraph @

dojox/editor/tests/editorUploadPlug.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <title>Editor File Upload Plugin</title>
6 <style type="text/css">
7 @import "../../../dojo/resources/dojo.css";
8 @import "../../../dijit/themes/tundra/tundra.css";
9 </style>
10
11 <link href="../../form/resources/FileInput.css" type="text/css" rel="stylesheet" />
12 <link href="../plugins/resources/editorPlugins.css" type="text/css" rel="stylesheet" />
13
14 <script type="text/javascript">
15 passthrough = function(msg){
16 //for catching messages from Flash
17 if(window.console){
18 console.log(msg);
19 }
20 }
21 var djConfig = {
22 isDebug: false,
23 parseOnLoad: true,
24 debugAtAllCosts:false
25 //popup:true,
26 //forceFirebugLite:true
27 };
28 </script>
29 <script type="text/javascript" src="../../../dojo/dojo.js"></script>
30 <script>
31 dojo.require("dojo.parser");
32 dojo.require("dijit.Editor");
33 dojo.require("dojox.editor.plugins.UploadImage");
34
35 dojo.addOnLoad(function(){
36 //
37 });
38
39
40
41 </script>
42 <style>
43 #main{
44 width:auto;
45 margin:20px 100px;
46 }
47 </style>
48 </head>
49 <body class="tundra">
50 <div id="main">
51 <div dojoType="dijit.Editor" plugins="[
52 'undo', 'redo', 'bold','italic','underline','|', 'copy', 'cut',
53 'paste','|',
54 {name: 'dojox.editor.plugins.UploadImage', command: 'uploadImage',
55 uploadUrl:'../../form/resources/UploadFile.php',
56 downloadPath:'../../form/resources/uploads/', tempImageUrl:'../plugins/resources/images/busy.gif'}
57 ]">
58 <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>
59 <p>
60 <font style="font-size:10px; color:#999;"><strong>Test Disclaimers:</strong><br />
61 A PHP test file is being used for server code.<br />
62 Folder permissions will need to be set to system level for uploads to work on your local system.<br />
63 The code uses the GD library (to get image sizes), that sometimes is not pre-installed in a standard PHP build.</font>
64 </p>
65 </div>
66 </div>
67 </body>
68 </html>