News for hackers. Stuff that matters.
Re:BlockSuite: An open-source Notion-like editor with multip... by jitl on Wednesday June 28, 2023 @12:46PM (#36509064)
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.
Re:BlockSuite: An open-source Notion-like editor with multip... by julienr2 on Wednesday June 28, 2023 @06:03PM (#36513265)
Curious 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 ?

Re:BlockSuite: An open-source Notion-like editor with multip... by jitl on Sunday July 02, 2023 @03:12PM (#36564651)
Mostly Android input being a hellscape, and wrangling React inside ContentEditable posing weird synchronization challenges with input method editors.