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>
  • 相关阅读:
    Eclipse RCP与Spring OSGi:技术详解与最佳实践
    AutoCAD 2016机械设计从入门到精通(第2版)
    中文版CorelDRAW X7平面设计
    神奇的中文版Photoshop CC 2017入门书
    Hadoop实战(第2版)
    1048.判断三角形类型
    1046.求最大值
    1047.素数判定
    1056.最大公约数
    1057.众数
  • 原文地址:https://www.cnblogs.com/frank-quan/p/4213047.html
Copyright © 2011-2022 走看看