Skip to content

bug: firefox cursor end of line issue #1419

@YousefED

Description

@YousefED

On firefox, somehow the collaboration cursor wraps to the next line when the other user is typing spaces at the end of the line.

Root cause
I did not find the root cause yet, it doesn't seem to happen on tiptap / y-prosemirror demos.

possible fix
when I remove the following cursor styles, the issue doesn't occur:

margin-left: -1px; 
margin-right: -1px;

Ah fix could be to use outline as then the caret would still be shown, but the element can have width 0 which would probably solve most layout issues. However, before we go for that solution, perhaps it would be better to find the root cause

Another way to fix it is to remove the non-breaking space (\u2060), but that will of course cause other issues

reproduce
in firefox, open a collaborative demo like https://blocknote-main.vercel.app/collaboration/y-sweet, and have another user type whitespace at end of line

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions