Laravel框架【萬能編輯器】
阿新 • • 發佈:2018-12-08
<td align="right" valign="top">詳細介紹</td> <td> <!-- KindEditor --> <link rel="stylesheet" href="{{asset('lanse')}}/js/kindeditor/themes/default/default.css" /> <link rel="stylesheet" href="{{asset('lanse')}}/js/kindeditor/plugins/code/prettify.css" /> <script charset="utf-8" src="{{asset('lanse')}}/js/kindeditor/kindeditor.js"></script> <script charset="utf-8" src="{{asset('lanse')}}/js/kindeditor/lang/zh_CN.js"></script> <script charset="utf-8" src="{{asset('lanse')}}/js/kindeditor/plugins/code/prettify.js"></script> <script> KindEditor.ready(function(K) { var editor1 = K.create('textarea[name="content"]', { cssPath : '../plugins/code/prettify.css', uploadJson : '../php/upload_json.php', fileManagerJson : '../php/file_manager_json.php', 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(); }); } }); prettyPrint(); }); </script> <!-- /KindEditor --> <textarea id="content" name="content" style="width:780px;height:400px;" class="textArea"></textarea> </td> </tr>