Fixed issues with text selection when using contenteditable.
Fixed issues with text selection when using contenteditable.

Fixed _setCursor to correctly place cursor when using contenteditable.
Fixed regex searching for newlines.
Fixed _getSelection to return correct range when using contenteditable.

dbmedialab/markd