News for hackers. Stuff that matters.
Re:Why ContentEditable Is Terrible, Or: How the Medium Edito... by BasDirks on Wednesday April 13, 2016 @10:55AM (#11488672)
There are a bunch of bugs immediately apparent. Try typing while making a selection with mouse. Is that expected behaviour? nah.
Re:Why ContentEditable Is Terrible, Or: How the Medium Edito... by teleclimber on Wednesday April 13, 2016 @01:27PM (#11490247)
What is the "expected behavior" for simultaneously drag-selecting text and typing? And why? And who decided that?

I've found that there are many edge cases in rich content-editing. If your general-purpose editor does something reasonable and constructive with esoteric inputs it's fine.

Draft.js appears to cancel the selection process and drops the typed character wherever the mouse happens to be. Reasonable.

Re:Why ContentEditable Is Terrible, Or: How the Medium Edito... by spicyj on Wednesday April 13, 2016 @12:31PM (#11489678)
What? This should work properly. If it doesn't, please file a detailed bug with info about your browser.