码迷,mamicode.com
首页 > 其他好文 > 详细

KindEditor的使用

时间:2016-01-27 17:22:45      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:

@{
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>

KindEditor的使用

标签:

原文地址:http://www.cnblogs.com/mfc-itblog/p/5163673.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!