Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Unexpected error in innerDocument #326

antoinelyset opened this Issue · 4 comments

2 participants



I got this error :

 Unexpected error in innerDocument 

and :

Uncaught TypeError: Object #<HTMLIFrameElement> has no method 'open'

I use jwysiwyg in a Twitter Bootstrap Modal.

I investigated myself and I think it could happen when the innerDocument method tries to access to element.contentDocument (I use Chrome) before the iframe is up and running totally. (see



Did I do something wrong ?


I debugged manually and found no problems if you let the iframe load.

Strange bug.


I ran into this issue as well. The problem for me was due to attempting to create the editor in a DOM element before it was attached to the document. When I waited until the editor's parent was attached to the document, this error went away.



Thanks for the reply. Just to know, how did you wait ? You used jQuery .ready() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.