vectorsize / substance-text

Substance Text
substance.github.com/text
MIT License
282 stars 26 forks source link

Initializing empty noded with placeholder #13

Closed rsaccon closed 12 years ago

rsaccon commented 12 years ago

if I initialize an empty node by activating / deactivating, I would expect to have the placeholder as innerHTML of the node. But it remains empty. However if I click inside and outside the node, then I see the placeholder.

afeld commented 12 years ago

Had the same issue - a quick fix is to call $('#myEditableEl').blur() to give it a nudge. I agree that this should happen in activation, though.