Skip to content

Cursor should always focus to left of placeholder #24

Description

@madeleineostoja

Right now the placeholder is treated as a single node, which the placeholder can be placed to the right of. This means that if you tap the editor, or delete the content in the editor, the cursor often ends up to the right of the placeholder, which looks all kinds of broken.

A few hacky patches were done in #16, but that's certainly not a long term fix. One use case (deleting content) isn't resolved at all, and others have FOUC flashes as the cursor is shoved back to the left.

This seems to be a regression from when ProseMirror was bundled with simpla-text, so worth exploring what's changed.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions