www.gusucode.com > Catfish(鲶鱼) CMS系统 PHP版 v4.8.21源码程序 > Catfishcms_v4.8.21/public/common/js/writeEditor.js
/** * Created by A.J on 2017/7/13. */ $(document).ready(function(){ var um = UM.getEditor('editor',{ autoFloatEnabled:false }); //保存 $("#baocun").click(function(){ if($.catfish()){ $("#zhengwen").text(um.getContent()); if($("#zhaiyao").val() == ''){ if(um.getContentTxt().length > 500){ $("#zhaiyao").val(um.getContentTxt().substr(0,500)+'...'); } else{ $("#zhaiyao").val(um.getContentTxt()); } } } }); });