🐛(frontend) link not clickable and flickering firefox #457
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
At the base, this code was made to solve this issue: #384
The link in the read mode was not clickable anymore, it was due to a attempt to not display the cursor of anonymous users.
We changes the way to do it by rendering our own cursor, when a user is anonymous we don't render the cursor.
By rendering our own cursor we fixed another problem, the cursor was flickering when the user was typing at the end of the line on the firefox browser.
About the Firefox flickering issue
https://github.com/TypeCellOS/BlockNote/blob/3ef72187c6c10fbc37891d922b4ed6421474482b/packages/core/src/editor/BlockNoteExtensions.ts#L261-L262
Initially:
https://github.com/yjs/y-prosemirror/blob/df4257b499bf25b2b8e69d56cc2d8bb790f8e7ba/src/plugins/cursor-plugin.js#L39
We are investigating the purpose of it, stayed tune !
Proposal