withspectrum / draft-js-markdown-plugin

An opinionated DraftJS plugin for supporting Markdown syntax shortcuts
https://markdown-plugin.spectrum.chat/
MIT License
139 stars 42 forks source link

Selection is not beginning of line if markdown is added to already existing text #68

Open michaelgmcd opened 6 years ago

michaelgmcd commented 6 years ago

See example below. If this is not the intended behavior, I can look into overriding it:

selection-bug

I would expect the cursor to be at the beginning of the line (before the H in Hey) in the case above.

michaelgmcd commented 6 years ago

@juliankrispel @mxstbr what do you think?