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" />
| <title>Paste Type Examples</title>
| <style>
| form {
| margin: 0;
| }
| textarea {
| display: block;
| }
| </style>
| <script charset="utf-8" src="../kindeditor-min.js"></script>
| <script charset="utf-8" src="../lang/zh_CN.js"></script>
| <script>
| KindEditor.ready(function(K) {
| K.create('#content1', {
| pasteType : 0
| });
| K.create('#content2', {
| pasteType : 1
| });
| K.create('#content3', {
| pasteType : 2
| });
| });
| </script>
| </head>
| <body>
| <h3>禁止粘贴</h3>
| <textarea id="content1" name="content" style="width:700px;height:200px;visibility:hidden;"></textarea>
| <h3>纯文本粘贴</h3>
| <textarea id="content2" name="content" style="width:700px;height:200px;visibility:hidden;"></textarea>
| <h3>HTML粘贴</h3>
| <textarea id="content3" name="content" style="width:700px;height:200px;visibility:hidden;"></textarea>
| </body>
| </html>
|
|