来自doc的FCKEDITOR表插入问题

时间:2010-10-23 05:59:57

标签: fckeditor

当我从word文件复制粘贴表时,它不允许我在表外添加文本。 我按照这个程序 1)使用fckeditor中的“粘贴词”选项从Microsoft Word文件复制粘贴表。 但在那之后,如果我想在表格外面输入一些文字,那么fckeditor不允许我这样做。

光标不在表格之外

感谢任何帮助,提前解决方案

1 个答案:

答案 0 :(得分:0)

以某种方式设法修复此错误。拼凑:P

\编辑\对话框\ fck_paste.html 内部功能Ok(){}

中的行号100

在两个地方添加了一些行

1)

else 
    sHtml = oBody.innerHTML ;
// 25oct2010 added to fix After pasting a table from word it is not possible to navigate outside the table
    if ( oEditor.FCKBrowserInfo.IsIE )
        sHtml+="";
    else
        sHtml+="< br / >";
    //end  25oct2010 added to fix After pasting a table from word it is not possible to navigate outside the table 
        // Fix relative anchor URLs (IE automatically adds the current page URL).
        var re = new RegExp( window.location + "#", "g" ) ;

2)

range.MoveToBookmark( bookmark ) ;
        range.Collapse( false ) ;
        range.Select() ;
        range.Release() ;
        return true ;
    }
    // 25oct2010 added to fix After pasting a table from word it is not possible to navigate outside the table
    if ( oEditor.FCKBrowserInfo.IsIE )
        sHtml+="";
    else
        sHtml+="< br / >";
    //end  25oct2010 added to fix After pasting a table from word it is not possible to navigate outside the table
    oEditor.FCK.InsertHtml( sHtml ) ;

注意:在这些行上使br标记正确sHtml + =“&lt; br /&gt;”;