KindEditor 사진 업로드

4291 단어 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>

좋은 웹페이지 즐겨찾기