文档中的 FCKEDITOR 表插入问题

发布于 2024-09-29 01:53:45 字数 179 浏览 6 评论 0原文

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

光标不会超出表格,

感谢您的帮助,提前解决方案

When i copy paste table from word file, it doesn't allow me to add text outside the table.
I follow this procedure
1)copy paste the table from Microsoft word file using "paste word" option in fckeditor.
But after that, if i want to type some text outside the table , fckeditor doesn't allow me to do so.

the cursor doesn't go outside of table

thanks for any help, solutions in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无需解释 2024-10-06 01:53:45

以某种方式设法修复了这个错误。拼凑而成:P

\editor\dialog\fck_paste.html
function 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+="< br / >";

somehow managed to fix this bug. patchwork :P

\editor\dialog\fck_paste.html
line no 100 inside function Ok(){}

added some lines at two places

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 ) ;

Note: make the br tag proper at these lines sHtml+="< br / >";

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文