michael/proper — Issue #12: does not work on dynamically inserted HTML
Author: rsaccon
Created: 2011-10-29 13:59:25+00:00
State: open

observed this on latest Chrome and Safari on Mac OS X Lion.

Everything fine if the HTML node where I want to activate the editor exists statically at page load time.

I am using sproutcore and the app gets generated from JS templates. Now I try to activate the editor on a Node which has been dynamically generated via JS, and I get:

Chrome Error: TypeError: Cannot read property 'startContainer' of null

Safari Error: TypeError: 'null' is not an object (evaluating 'sel.startContainer')