zoukankan      html  css  js  c++  java
  • KindEditor上传图片

     1 <script type="text/javascript">
     2     KindEditor.ready(function(K) {
     3         var editor1 = K.create('textarea[name="course.about"]', {
     4             cssPath : ['${pageScope.ctx}/js/kindeditor/examples/index.css','${pageScope.ctx}/js/kindeditor/plugins/code/prettify.css'],
     5             uploadJson : '${pageScope.ctx}/js/kindeditor/jsp/upload_json.jsp',
     6             fileManagerJson : '${pageScope.ctx}/js/kindeditor/jsp/file_manager_json.jsp',
     7             items: ['undo', 'bold', 'underline', 'forecolor', 'fontname', 'fontsize', 'clearhtml','image'],
     8             allowFileManager : true,
     9             afterCreate : function() {
    10                 var self = this;
    11                 K.ctrl(document, 13, function() {
    12                     self.sync();
    13                     document.forms['example'].submit();
    14                 });
    15                 K.ctrl(self.edit.doc, 13, function() {
    16                     self.sync();
    17                     document.forms['example'].submit();
    18                 });
    19             }
    20         });
    21         //prettyPrint();
    22     });
    23     /*
    24     jQuery(function(){
    25         jQuery('.ke-container-default').css({'widht':'86%','margin':'10px auto auto auto','border':'1px solid #ccc','borderRadius':'6px','boxShadow':'-1px 0 2px #ccc, 0 1px 2px #ccc, 1px 0 2px #ccc'});
    26     
    27         jQuery('.ke-edit-iframe').css({'borderRadius':'6px','boxShadow':'-1px 0 2px #ccc, 0 1px 2px #ccc, 1px 0 2px #ccc'});
    28     
    29     });*/
    30 </script>
  • 相关阅读:
    计算机图形学和OpenGL(二)坐标系和绘制点线函数
    计算机图形学和OpenGL(一)OpenGL初步
    C++ 实现链表常用功能
    Cocos2d-x环境搭建
    2014年学习计划
    2013年终总结
    AS3开发必须掌握的内容
    starling性能优化
    后补个2012年的总结吧
    原生javascript实现图片懒加载
  • 原文地址:https://www.cnblogs.com/frank-quan/p/4213047.html
Copyright © 2011-2022 走看看