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

Can't keep the cursor visible #176

Open
Nicaullait opened this issue Jan 16, 2024 · 3 comments
Open

Can't keep the cursor visible #176

Nicaullait opened this issue Jan 16, 2024 · 3 comments

Comments

@Nicaullait
Copy link

Hello

I'm using your component inside a ComposeView which is inside a NestedScrollView (the NestedScrollView is here because i was unable to scroll inside de component if the page was scrollable)
When i'm writing a new line, i can't move the content up because i cant find the cursor's position in the editor.
Same issue when I'm editing the middle of the text.

Maybe you know a workaround or can you expose the cursor's position ?

Thanks

@MohamedRejeb
Copy link
Owner

Hi,
If you use the Compose TextField do you have the same issue or not? Because it looks like an issue related to Compose TextField not the library.

@Nicaullait
Copy link
Author

You are right, the issue exist on the TextField. But there is a workaround using the cursor offset like this one on Stackoverflow.

@MohamedRejeb
Copy link
Owner

The BasicRichTextEditor is built on top of BasicTextField so you should be able to use this workaround with the rich editor as well.

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

No branches or pull requests

2 participants