4 ms·
Notion used this strategy until January 2021, when we rolled over to one-big-ContentEditable. I actually tried the tactic Affine is using, that is implementing
by jitl 3y ago
Notion used this strategy until January 2021, when we rolled over to one-big-ContentEditable. I actually tried the tactic Affine is using, that is implementing drag-to-select gesture yourself and forcing that selection on the browser, but I hit a bunch of roadblocks on iOS and Android that made me abandon it and go with big-ContentEditable.
- julienr2 3y agoCurious about the issues you faced on mobile! At Slite I was part of the mobile team, and the editor is using Slate. So to make it work in React Native we had to go for a WebView (similar to what Notion uses), with all the downside it can bring.. I tickled with the possibilty to do a native adapter of Slate, but the fact that it's based on a content editable, makes it complicated to adapt in React Native.. I have the feeling that block approach might fit better a more native integration on mobile. It seems similar to what Craft does, isn't it ?
- jitl 3y agoMostly Android input being a hellscape, and wrangling React inside ContentEditable posing weird synchronization challenges with input method editors.