forked from wangeditor-team/wangEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathz-test.html
More file actions
22 lines (21 loc) · 690 Bytes
/
Copy pathz-test.html
File metadata and controls
22 lines (21 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>wangEditor2 test</title>
<link rel="stylesheet" type="text/css" href="../dist/css/wangEditor.min.css">
</head>
<body>
<div id="div1"></div>
<button id="btn1">test</button>
<script type="text/javascript" src="../dist/js/lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../dist/js/wangEditor.js"></script>
<script type="text/javascript">
$('#btn1').click(function () {
var $input = $('<input type="file" accept="image/jpg,image/jpeg,image/png"/>');
$('#div1').append($input)
$input.click();
})
</script>
</body>
</html>