标签:
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/bootstrap.min.js"></script>
<script src="~/Scripts/kindeditor-4.1.10/kindeditor-min.js"></script>
<script src="~/Scripts/kindeditor-4.1.10/lang/zh_CN.js"></script>
<title>Index</title>
</head>
<body>
<div class="container">
<form>
<textarea name="content" style="width:800px;height:400px;visibility:hidden;">KindEditor</textarea>
<input type="button" name="getHtml" value="取得HTML" />
</form>
</div>
<script type="text/javascript">
var editor;
KindEditor.ready(function (K) {
editor = K.create(‘textarea[name="content"]‘, {
allowFileManager: true
});
K(‘input[name=getHtml]‘).click(function (e) {
alert(editor.html());
});
});
</script>
</body>
</html>
标签:
原文地址:http://www.cnblogs.com/mfc-itblog/p/5163673.html