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

Using selectedText to capture the a selected text in a document without truncating it #15

Open
anonys opened this issue Sep 15, 2024 · 3 comments

Comments

@anonys
Copy link

anonys commented Sep 15, 2024

is there a way to surpass the limitation of selectedText() when the text selection is beyond 2 lines.

@danielsaidi
Copy link
Contributor

Hi @anonys

Apple's APIs are really restricted when it comes to accessing text from the proxy.

I guess the full document reader capability is not what you're after, but only the selected text?

@anonys
Copy link
Author

anonys commented Sep 16, 2024

Hey @danielsaidi
Yes correct, I am using full document reader when I want to access the whole text but in certain situations I need to get the selected text only - and sometimes it's beyond 2 lines.

@danielsaidi
Copy link
Contributor

If the range information can be used, it should be possible, but I'm sure it requires the same kind of underlying operations as the full document reader. I'll keep this open.

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