-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathwangedit.html
More file actions
33 lines (26 loc) · 932 Bytes
/
wangedit.html
File metadata and controls
33 lines (26 loc) · 932 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>MarkdownIME x WangEditor</title>
</head>
<body>
<div id="editor">
<p>MarkdownIME works with [WangEditor](http://www.wangeditor.com/)</p>
<p>Activate MarkdownIME with one line:</p>
<pre><code>MarkdownIME.Enhance(myWangEditor.$textElem);</code></pre>
<p>Where <code>myWangEditor</code> is your wangEditor instance.</p>
</div>
<script src="../dist/MarkdownIME.js"></script>
<script src="https://unpkg.com/wangeditor/release/wangEditor.min.js"></script>
<script>
// Init WangEditor
var myWangEditor = new wangEditor('#editor');
myWangEditor.create();
// Find the input area, then enhance it with MarkdownIME
MarkdownIME.Enhance(myWangEditor.$textElem);
</script>
</body>
</html>