Menu

#39 FireFox error with document.designMode

open
nobody
5
2008-04-19
2008-04-19
Anonymous
No

tikitiki@mybboard.com

We use Codepress in our upcoming MyBB 1.4 release (it's a popular bulletin board software) and we've been very pleased with the functionality codepress has provided for us.

We've however stumbled upon a bug and we've able to been work around it but it's something that would be better fixed on the codepress level.

When codepress is initially hidden and then made visible (i.e. <div id="hidden" style="visibility: hidden;">..codepress assigned text area..</div>) and then later made visible via javascript, FireFox will produce this error:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSHTMLDocument.designMode]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost/dev/mybb/trunk/admin/jscripts/codepress/engines/gecko.js?ts=1208582907490 :: anonymous :: line 30" data: no]
Source File: http://localhost/dev/mybb/trunk/admin/jscripts/codepress/engines/gecko.js?ts=1208582907490
Line: 30

This also affects the Codepress trunk. Possible solutions include a try catch statement and in the catch use a onClick handler to activate designMode

Discussion


Log in to post a comment.