You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a this.win is null error in WebKit browsers because this.win = frame.contentWindow is done before the frame is ready. Running that block of code at the bottom of the constructor in a setTimeout alleviates this problem, though it probably should be done on the load event.
The text was updated successfully, but these errors were encountered:
One thing to be careful of is that the dom element given to the constructor of CodeMirror must already be attached to document's DOM. Otherwise, Bad Things happen. This is because iframe.contentWindow will be null until the iframe's attached to the window.
I'm getting a
this.win is null
error in WebKit browsers becausethis.win = frame.contentWindow
is done before the frame is ready. Running that block of code at the bottom of the constructor in asetTimeout
alleviates this problem, though it probably should be done on the load event.The text was updated successfully, but these errors were encountered: