You've already forked codeigniter_test
first commit
This commit is contained in:
42
asset/css/wmd-master/wmd-test.html
Normal file
42
asset/css/wmd-master/wmd-test.html
Normal file
@ -0,0 +1,42 @@
|
||||
<!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>
|
Reference in New Issue
Block a user