你是指HTML编辑器吧?
看这个:http://www.fredck.com/FCKeditor/Demo/

解决方案 »

  1.   

    ilqtj(飞天)大哥的贴子,提供给你具体的例子:http://202.119.73.208/NetEAn/com/test/jsprint.htm//一下是取数据的类
    //Obj参数指定数据的来源(限定Table),默认第一行为字段名称行
    //GetTableData类提供MoveNext方法,参数是表的行向上或向下移动的位数,正数向下移动,负数向上.
    //GetFieldData方法获得指定的列名的数据
    //Sort_desc方法对指定的列按降序排列
    //Sort_asc方法对指定的列按升序排列
    //GetData方法返回字段值为特定值的数据数组,提供数据,可以在外部进行其他处理
    //Delete方法删除当前记录,数组减少一行
    //初始化,Obj:table的名字,Leftlen:左面多余数据长度,Rightlen:右面多余数据长度,
    function GetTableData(Obj,LeftLen,RightLen){
    var MyObj=document.all(Obj);
    var iRow=MyObj.rows.length;
    var iLen=MyObj.rows[0].cells.length;
    var i,j;TableData=new Array();
    for (i=0;i< iRow;i++){
    TableData[i]=new Array();
    for (j=0;j<iLen;j++){
    TableStr=MyObj.rows(i).cells(j).innerText;
    TableStr=TableStr.substring(LeftLen, TableStr.length-RightLen).Trim();
    TableStr=TableStr.replace(/ /gi,"").replace(/\r\n/ig,"");
    TableData[i][j]=TableStr;
    }
    }
     
     this.TableData=TableData; 
     this.cols=this.TableData[0].length;
     this.rows=this.TableData.length;
     this.rowindex=0;
    }
    function movenext(Step){
    if (this.rowindex>=this.rows){
    return
    }if (Step=="" || typeof(Step)=="undefined") {
    if (this.rowindex<this.rows-1)
    this.rowindex++;
    return;}
    else{
    if (this.rowindex + Step<=this.rows-1 && this.rowindex + Step>=0 ){
    this.rowindex=this.rowindex + Step;
    }
    else
    {
    if (this.rowindex + Step<0){
     this.rowindex= 0;
     return;
     }
    if (this.rowindex + Step>this.rows-1){
     this.rowindex= this.rows-1;
     return;
     }
    }
    }
    }
    function getfielddata(Field){
    var colindex=-1;
    var i=0;
    if (typeof(Field) == "number"){
    colindex=Field;
    }
    else
    {
    for (i=0;i<this.cols && this.rowindex<this.rows ;i++){
    if (this.TableData[0][i]==Field){
    colindex=i;
    break;
    }
    }
    }
    if (colindex!=-1) {
    return this.TableData[this.rowindex][colindex];
    }}function sort_desc(){//降序
    var colindex=-1;
    var highindex=-1;
    desc_array=new Array();
    var i,j;
    for (n=0; n<arguments.length; n++){
    Field=arguments[arguments.length-1-n];
    for (i=0;i<this.cols;i++){
    if (this.TableData[0][i]==Field){
    colindex=i;
    break;
    }
    }
       if ( colindex==-1 )
    return;
       else
    {
    desc_array[0]=this.TableData[0];
    for(i=1;i<this.rows;i++){
    desc_array[i]=this.TableData[1];
    highindex=1;
    for(j=1;j<this.TableData.length;j++){
       if  (desc_array[i][colindex]<this.TableData[j][colindex]){
     desc_array[i]=this.TableData[j];   
     highindex=j;
    }

    }
    if (highindex!=-1)
    this.TableData=this.TableData.slice(0,highindex).concat(this.TableData.slice(highindex+1,this.TableData.length));                      
    }

    this.TableData=desc_array;
    }
    return;
    }function sort_asc(){//升序
    var colindex=-1;
    var highindex=-1;
    var i,j;
    for (n=0; n<arguments.length; n++){
    asc_array=new Array();
    Field=arguments[arguments.length-1-n];
    for (i=0;i<this.cols;i++){
    if (this.TableData[0][i]==Field){
    colindex=i;
    break;
    }
    }
    if ( colindex==-1 )
    return;
    else
    {
    asc_array[0]=this.TableData[0];
    for(i=1;i<this.rows;i++){
    asc_array[i]=this.TableData[1];
    highindex=1;
    for(j=1;j<this.TableData.length;j++){//找出最小的列值
       if  (asc_array[i][colindex]>this.TableData[j][colindex]){
     asc_array[i]=this.TableData[j];   
     highindex=j;

    }

    }
    if (highindex!=-1)
    this.TableData=this.TableData.slice(0,highindex).concat(this.TableData.slice(highindex+1,this.TableData.length));                      

    }

    this.TableData=asc_array;
    }
    return;
    }function getData(Field,FieldValue){
    var colindex=-1;
    var i,j;GetData=new Array();
    if (typeof(Field)=="undefined" || typeof(FieldValue)=="undefined" ){
    return this.TableData;
    }

    for(j=0;j<this.cols;j++){
       if  (this.TableData[0][j]==Field){
    colindex=j;
    }
    }
    if (colindex!=-1){

    for(i=1;i<this.rows;i++){
       if  (this.TableData[i][colindex]==FieldValue){
    GetData[i]=new Array();
    GetData[i]=this.TableData[i];
    }
    }
    }
       return GetData;
    }
    function DeletE(){
    this.TableData=this.TableData.slice(0,this.rowindex).concat(this.TableData.slice(this.rowindex+1,this.TableData.length));                      
    this.rows=this.TableData.length;
    return;
    }
    function updateField(Field,FieldValue){
    var colindex=-1;
    var i=0;
    if (typeof(Field) == "number"){
    colindex=Field;
    }
    else
    {
    for (i=0;i<this.cols && this.rowindex<this.rows ;i++){
    if (this.TableData[0][i]==Field){
    colindex=i;
    break;
    }
    }
    }
    if (colindex!=-1) {
    this.TableData[this.rowindex][colindex]=FieldValue;
    }
    }
    function movefirst(){
    this.rowindex=0;
    }
    function movelast(){
    this.rowindex=this.rows-1;
    }
    function String.prototype.Trim() {return this.replace(/(^\s*)|(\s*$)/g,"");}
    GetTableData.prototype.MoveNext = movenext;
    GetTableData.prototype.GetFieldData = getfielddata;
    GetTableData.prototype.Sort_asc = sort_asc;
    GetTableData.prototype.Sort_desc = sort_desc;
    GetTableData.prototype.GetData = getData;
    GetTableData.prototype.Delete = DeletE;
    GetTableData.prototype.UpdateField = updateField;
    GetTableData.prototype.MoveFirst = movefirst;具体的例子:http://202.119.73.208/NetEAn/com/test/jsprint.htm
      

  2.   

    我要给ploughsky(至少还有我) 投个鸡蛋了,你说的那个网页不存在阿
      

  3.   

    啊!怎么突然就没有了?!
    算了我给你上传了一个,这次应该肯定不会丢失了
    www.zhangyong.net/test.asp
      

  4.   

    http://www.xxsky.com/aspdown/view.aspx?id=4303&type1id=16&type2id=28&searcher=searcher
      

  5.   

    http://www.webasp.net/
    这个很不错,强烈推荐
      

  6.   

    http://www.webasp.net/我上这个网站上看了,感觉一般,但好像演示的网页有问题,不知道是不是我电脑的问题。我以前是用csdn的。最近正在改一个,加点功能。
      

  7.   

    http://www.ewebsoft.com/
    是我见过的最好的
      

  8.   

    http://www.webasp.net/我后来仔细看了看,这个真的是非常好,也是我见过最好的,功能超乎寻常地强大,建议使用,俺也正在研究如何用上呢。
      

  9.   

    这个东西好是好,但对浏览器有较高要求。我不喜欢,因为我的客户许多人还是在用win98和win2k系统,许多人也不会升级浏览器。。考虑到兼容性,我最终还是放弃采用本系统,重新开发了一套。
      

  10.   

    http://www.webasp.net/
    他是我见过最强的
      

  11.   

    http://www.ewebsoft.com/
    是我见过的最好的------------------
    同意!!!1
      

  12.   

    eWebSoft在线编辑器http://ewebeditor.webasp.net/features.asp
    这个确实是我见过最爽的。