Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor should always focus to left of placeholder #24

Open
madeleineostoja opened this issue May 30, 2017 · 1 comment
Open

Cursor should always focus to left of placeholder #24

madeleineostoja opened this issue May 30, 2017 · 1 comment
Assignees
Labels

Comments

@madeleineostoja
Copy link

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.

@bedeoverend
Copy link
Contributor

So just been checking out the old simpla-text and looks like it still had most of the same problems, except that when removing all content it did reset the cursor to the left - though was still a FOUC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants