-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.html
38 lines (38 loc) · 1.47 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tinymce upload</title>
<link type="text/css" rel="stylesheet" href="http://tinymce.cachefly.net/4.0/skins/lightgray/content.min.css" />
<link type="text/css" rel="stylesheet" href="upload/plugin.css" />
<script src="http://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<!--script src="../tinymce/tinymce.min.js"></script-->
<script src="upload/plugin.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
toolbar: "bold italic strikethrough link unlink numlist bullist blockquote upload image fullscreen",
width: 600,
height: 200,
upload_action: 'upload.php',//required
upload_file_name: 'userfile',//required
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste upload"
]
});
</script>
</head>
<body>
<div style="width: 600px; margin: 20px auto;">
<h1>tinymce upload</h1>
<p>A simple upload plugin for tinymce 4.0+, <a href="https://github.com/zhaoda/tinymce-upload">view source on github</a>.</p>
<p>The following example:</p>
<form method="post" action="post.php">
<textarea name="content">Click the upload button <input type="button" style="width: 19px; height: 16px; border: none; background: url(upload/upload_icon.png);" /> to upload a file</textarea>
</form>
</div>
</body>
</html>