欢迎各位兄弟 发布技术文章
这里的技术是共享的
两种版本都可以试一试
第一种版本的 emeditor
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.CharRight(false,1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.Paste(eeCopyUnicode);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.Paste(eeCopyUnicode);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.Replace(":","-",0,0);
document.selection.Replace(":","-",0,0);
document.selection.Replace(":","-",0,0);
document.selection.Replace(":","-",0,0);
document.selection.Replace(":","-",0,0);
document.selection.Replace("-",":",0,0);
document.selection.Replace("-",":",0,0);
document.selection.Replace("-",":",0,0);
document.selection.Replace("-",":",0,0);
document.selection.Replace("-",":",0,0);
第二种版本的 emeditor
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.SelectAll();
document.selection.CharRight(false,1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.Paste(eeCopyUnicode);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.NewLine(1);
document.selection.Paste(eeCopyUnicode);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.LineUp(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.CharLeft(false,1);
document.selection.Replace(":","-",eeFindNext | eeFindSaveHistory);
document.selection.Replace(":","-",eeFindNext | eeFindSaveHistory);
document.selection.Replace(":","-",eeFindNext | eeFindSaveHistory);
document.selection.Replace(":","-",eeFindNext | eeFindSaveHistory);
document.selection.Replace(":","-",eeFindNext | eeFindSaveHistory);
document.selection.Replace("-",":",eeFindNext | eeFindSaveHistory);
document.selection.Replace("-",":",eeFindNext | eeFindSaveHistory);
document.selection.Replace("-",":",eeFindNext | eeFindSaveHistory);
document.selection.Replace("-",":",eeFindNext | eeFindSaveHistory);
document.selection.Replace("-",":",eeFindNext | eeFindSaveHistory);
document.selection.Replace("\\r\\n\\r\\n\\r\\n","\\r\\n\\r\\n",eeFindNext | eeFindSaveHistory | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("\\r\\n\\r\\n\\r\\n","\\r\\n\\r\\n",eeFindNext | eeFindSaveHistory | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("\\r\\n\\r\\n\\r\\n","\\r\\n\\r\\n",eeFindNext | eeFindSaveHistory | eeReplaceAll | eeFindReplaceRegExp);