|
|
|
|
|
by jitl
1538 days ago
|
|
(I work at Notion) It's actually the browser's default behavior to do what you're describing! Inside a `contenteditable` element, links no longer behave as links -- they aren't clickable, and hovering over the link doesn't show a preview of the HREF attribute in the browsers I've tested. So in order for links to do link things, we have to fight the browser and re-implement these behaviors. Here's a codesandbox with no JS to demonstate this: https://codesandbox.io/embed/optimistic-resonance-jbyeef?fon... I created a task to track this bug internally. I think we can probably solve by calling preventDefault for the middle-click event if it bubbles up from inside a link. |
|
I still don't understand the UX. Am I assuming correctly that it's core to the concept of Notion to always be editable and not have an edit/view flip switch? Because I never used Notion to write anything, I just read things other people wrote. And so it's arguably weird to interact with a webpage that as it turns out is secretly an editor only masquerading as a webpage. Sly!