使用 KindEditor 的 单独调用组件
来源:互联网 发布:类似focusky的软件 编辑:程序博客网 时间:2024/04/30 04:02
转载:http://hkstb.blog.163.com/blog/static/46096793201392313257298/
<script>
KindEditor.ready(function (K) {
var editor1 = K.create('#<%=Describe.ClientID%>', {
cssPath: '../kindeditor/plugins/code/prettify.css',
uploadJson: '../kindeditor/asp.net/upload_json.ashx',
fileManagerJson: '../kindeditor/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function () {
var self = this;
K.ctrl(document, 13, function () {
self.sync();
K('form[name=form1]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function () {
self.sync();
K('form[name=form1]')[0].submit();
});
}
});
//注意:这里的editor1要和上面的editor1对应
K('#image1').click(function () {
editor1.loadPlugin('image', function () {
editor1.plugin.imageDialog({
imageUrl: K('#<%=SmallImg.ClientID%>').val(),
clickFn: function (url, title, width, height, border, align) {
K('#<%=SmallImg.ClientID%>').val(url);
editor1.hideDialog();
}
});
});
});
prettyPrint();
});
</script>
--------------------------------------
<tr>
<th>缩略图:</th><td><asp:TextBox ID="SmallImg" runat="server" EnableViewState="False"></asp:TextBox> <input type="button" id="image1" value="选择图片" /></td>
</tr>
- 使用 KindEditor 的 单独调用组件
- Kindeditor -单独调用组件,可以直接调用上传功能。
- KindEditor 单独调用图片插件
- kindEditor编辑器的使用
- 关于KindEditor的使用
- KindEditor编辑器的使用
- KindEditor的使用
- kindEditor编辑器的使用
- KindEditor插件的使用
- Kindeditor的使用
- KindEditor编辑器的使用
- kindeditor的使用
- KindEditor的使用
- kindeditor的使用
- kindeditor的使用心得
- KindEditor编辑器的使用
- UIToolBar的单独使用
- Gallery单独使用,Gallery和ImageSwitcher组件结合使用的例子
- 使用Freemarker替换Java字符串定义变量
- 动画教程(三)
- Spring MVC 配置全注解开发
- hdu 1016 Prime Ring Problem
- Prism框架(一)—— 概述
- 使用 KindEditor 的 单独调用组件
- windows 远程桌面关闭 运行程序退出
- C语言总结之基本数据类型
- cad绘图员作总结
- linux 下的C语言编程(总结)(精华)
- OPENGL|ES第七天 Adding Detail with Textures
- 对已经detach的线程采用pthread_kill检测线程是否存活时会有问题
- kindeditor编辑器,获取textarea值
- 浅析image,imagesc,imshow的用法