function quickreply(){ if(formreply.body.value=='') { alert('请输入排版内容!'); formreply.body.focus(); return false; }else{ return true; } } function format() { var body = "\n"+document.getElementById("thebody").value; body = body.replace(/ | /ig,""); body = body.replace(/\r\n/ig,"\n"); body = body.replace(/\n\n/ig,"\n"); body = body.replace(/\n\n/ig,"\n"); body = body.replace(/\n\n/ig,"\n"); body = body.replace(/\n\n/ig,"\n"); body = body.replace(/\n/ig,"\n\n  "); body = body.replace("\n\n",""); document.getElementById("thebody").value=body; }

在线排版

-请使用'Ctrl+V'粘贴,'Ctrl+C'复制
伪原创生成  |  文章转语音  |  DW编辑器  |  大刚资源网
 
 
 
  版本:工具使用说明!