What kind of event do I need to fire to programmatically start or stop actually editing a contenteditable, like when the user focuses or blurs it? I tried .focus(), .click(), setting the selection to its content, but none of them seem to work.
EDIT: .focus() does work, just make sure the contenteditable node is already inserted to the document...