5 ms·
One big problem with draft.js is it doesn't play well with tools like grammarly that reach into the dom and modify it. Medium's editor side steps this by just
by dminor 11y ago
One big problem with draft.js is it doesn't play well with tools like grammarly that reach into the dom and modify it.
Medium's editor side steps this by just rerendering after each input.
- underwater 11y agoDraft.js does (or did at some point) have some affordances for this so that it could handle mobile devices. Keyboards on Android Chrome used to emit keycode 0 for every character that was inserted and then mutate the DOM directly. And spelling corrections just mutated he DOM without firing events.