need to rethink this dom-entered thing

some stuff can only be done when a dom node is in the document
like sizing, positioning, etc.

codemirror only works properly when adding to a node that is
already in the document.