Monday 12 April 2010

'null' is null or not an object javascript error when interacting with the SharePoint rich text editor

Running MOSS 2007 with SP2 and a stack of cumulative updates still seems to leave those users running IE8 in IE8 Standards mode in the dark.

In particular, editing a page and clicking into a rich text field triggers a slew of javascript errors which seem to stem from a null reference in the RTE_TB_ClearButtonDisabledect function (form.js). In particular, you may face the ‘null’ is null or not an object error.

To work around this, use the IE Dev Toolbar (F12) to change the Document Mode to IE8 Compatibility View:

SharePoint IE8 Alternatively, tell the browser you’re site must be rendered in compatibility mode.

Interestingly, this issue was supposedly fixed with a hotfix and then SP2…

4 comments:

  1. Hi, can you tell witch fix supposedly fixed the error? I am having this issue and i can't find a way to fix it.

    ReplyDelete
  2. Hi Michael,

    Can you show us how to fix this in code?

    ReplyDelete
  3. Anonymous #2: check this out http://msdn.microsoft.com/en-us/library/cc817574.aspx

    ReplyDelete
  4. Thanks Michael,

    :)

    ReplyDelete

Spam comments will be deleted

Note: only a member of this blog may post a comment.