Invalid argument on Line 7353 in sp.ui.rte.debug.js

Invalid argument on Line 7353 in sp.ui.rte.debug.js

SharePointOOBError

This is still a problem after the December 2010 CU.

*** PROCEED WITH THE FOLLOWING AT YOUR OWN RISK ***

If you need an interim fix then we need to fix the offending JavaScript, and doing this breaks mySharePoint Golden Rule No. 6 – Never Modify the OOB files.  However if you need to do it then you might do something like this:

  1. Navigate to your LAYOUTS folder, usually at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
  2. Make a copy of SP.UI.Rte.debug.js and SP.UI.Rte.js to restore for later when this is fixed in an update. (Restore your vanilla copy before running any subsequent CU’s or Service Packs)
  3. Edit the SP.UI.Rte.debug.js around line 7353 …. from this:
    parentElement: function() {ULSkay:;
        var $v_0 = this.$8;
        if ($v_0.parentElement) {
            var $v_2 = $v_0.parentElement();
            var $v_3 = RTE.DomHelper.createRange(window.document);
            if ($v_2) {
                $v_3.moveToElementText($v_2);
            }
            while ($v_2 && !$v_3.inRange($v_0)) {
                $v_2 = $v_2.parentNode;
                try {
                    $v_3.moveToElementText($v_2);
                }
                catch ($$e_3_0) {
                }
            }
    To look like this:
    parentElement: function () {
            ULSkay: ;
            var $v_0 = this.$8;
            if ($v_0.parentElement) {
                var $v_2 = $v_0.parentElement();
                var $v_3 = RTE.DomHelper.createRange(window.document);
                if ($v_2) {
                    try {
                        $v_3.moveToElementText($v_2);
                    } catch (gonk) {
                        //Do Nothing - SharePoint Bug.
                    }
                }
                while ($v_2 && !$v_3.inRange($v_0)) {
                    $v_2 = $v_2.parentNode;
                    try {
                        $v_3.moveToElementText($v_2);
                    }
                    catch ($$e_3_0) {
                    }
  4. Save your changes and copy SP.UI.Rte.debug.js over the top of SP.UI.Rte.js – remembering that you have backups of both of these files to restore before applying future updates.

http://wss.boman.biz/Lists/Posts/Post.aspx?ID=69

posted @ 2011-09-02 09:36  dtlcq  阅读(813)  评论(0编辑  收藏  举报