为了账号安全,请及时绑定邮箱和手机立即绑定

自己不会。只好来这里求了。合并二个JS

自己不会。只好来这里求了。合并二个JS

鸿蒙传说 2018-12-06 14:08:21
这是:简单模式代码 <script> var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="content"]', { resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : false, items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link'] }); }); </script> 这是使用BR 换行代码: <script> KindEditor.ready(function(K) { var editor; K('select[name=newlineTag]').change(function() { if (editor) { editor.remove(); editor = null; } editor = K.create('textarea[name="content"]', { newlineTag : this.value }); }); K('select[name=newlineTag]').change(); }); </script> <select name="newlineTag"> <option value="br">BR换行</option> <option value="p">P换行</option> </select> 我现在想在简单模式直接默认为BR换行。如何整合二个JS.
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 459 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号