codeigniter_test/asset/css/wmd-master/wmd-test.html

42 lines
1.0 KiB
HTML
Raw Normal View History

2020-01-02 22:49:45 +07:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WMD Example</title>
<link rel="stylesheet" type="text/css" href="wmd.css"/>
<script src="wmd.js"></script>
<script src="showdown.js"></script>
<style type="text/css" media="screen">
textarea {width:100%;margin:0;}
textarea, #notes-preview {border:1px solid gray;height:100px;}
#notes-preview {overflow-x:hidden;overflow-y:scroll;}
</style>
</head>
<body>
<h1>WMD Example</h1>
<div>
<div id="notes-button-bar"></div>
<textarea id="notes"></textarea>
Preview:
<div id="notes-preview"></div>
Output:
<textarea type="text" name="copy_html" value="" id="copy_html"></textarea>
</div>
<script type="text/javascript">
new WMDEditor({
input: "notes",
button_bar: "notes-button-bar",
preview: "notes-preview",
output: "copy_html",
buttons: "bold italic link ol ul heading",
modifierKeys: false,
autoFormatting: false
});
</script>
</body>
</html>