Browse Source

fix bugs examples

v1.1.9
Pandao 10 years ago
parent
commit
55140a0bf4
  1. 5
      examples/image-cross-domain-upload.html
  2. 3
      examples/php/upload_callback.html

5
examples/image-cross-domain-upload.html

@ -11,6 +11,7 @@
<header>
<h1>图片跨域上传示例</h1>
<p>Image cross-domain upload example.</p>
<p>由于复印件</p>
</header>
<div id="test-editormd">
<textarea style="display:none;">####跨域上传原理
@ -74,9 +75,9 @@ exit;
path : '../lib/',
imageUpload : true,
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
imageUploadURL : "http://192.168.1.2/editor.md/examples/php/cross-domain-upload.php",
imageUploadURL : "http://www.ipandao.com/editor.md/examples/php/cross-domain-upload.php",
crossDomainUpload : true,
uploadCallbackURL : "http://localhost/editor.md/examples/php/upload_callback.php"
uploadCallbackURL : "http://localhost/editor.md/examples/php/upload_callback.html"
/*
跨域时,上传的图片服务器后台只需要返回一个跳转URL并跳转到原页面同域下的callback页面,结构如下:

3
examples/php/upload_callback.php → examples/php/upload_callback.html

@ -1,6 +1,3 @@
<?php
header("Content-Type:text/html; charset=utf-8");
?>
<!DOCTYPE html>
<html lang="zh">
<head>
Loading…
Cancel
Save