系统>>信息表>>字段管理,找到内容字段,点击修改,自定义属性中有一个提交前的js
输入下面脚本
- if(_ueditor_Content.queryCommandState('source')!=0)
- {_ueditor_Content.execCommand('source'); }
- var $introduction=$("#Introduction");
- var content=_ueditor_Content.getContentTxt();
- $introduction.val(content.Left(250));
复制代码$("#Introduction")里面的Introduction是你简介字段的名称,注意首字符大写。