首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >ASP.NET编程入门与应用_aspnet网站开发实例

ASP.NET编程入门与应用_aspnet网站开发实例

作者头像
全栈程序员站长
发布2022-11-18 16:07:12
发布2022-11-18 16:07:12
1.7K0
举报
代码语言:javascript
复制
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>KindEditor</title>
<link rel="stylesheet" href="./js/kindeditor/themes/default/default.css" />
<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script charset="utf-8" src="./js/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="./js/kindeditor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function (K) {
var editor = K.create('#editor_id', {
//上传管理 可自行在对应的文件按需求修改
uploadJson: './js/kindeditor/asp.net/upload_json.ashx',
//文件管理
fileManagerJson: './js/kindeditor/asp.net/file_manager_json.ashx',
allowFileManager: true,
//设置编辑器创建后执行的回调函数
afterCreate: function () {
var self = this;
K.ctrl(document, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
},
//上传文件后执行的回调函数,获取上传图片的路径
afterUpload: function (url) {
alert(url);
},
items:
[
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
'anchor', 'link', 'unlink', '|', 'about'
]
});
});
</script>
</head>
<body>
<div>
<textarea id="editor_id" name="editor_id" style="width:700px;height:300px;">
</textarea>
</div>
</body>
</html>

转载于:https://www.cnblogs.com/smartsmile/p/6234169.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/182852.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年10月12日,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档