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

onCopy on readonly doc? #4895

Open
ulion opened this issue Mar 16, 2022 · 1 comment
Open

onCopy on readonly doc? #4895

ulion opened this issue Mar 16, 2022 · 1 comment

Comments

@ulion
Copy link
Contributor

ulion commented Mar 16, 2022

hasEditableTarget(editor, event.target) &&

According to the code, the onCopy and setFragmentData only be called when doc is editable, not when it's readonly, but, why not?

Tried only check hasTarget instead of hasEditableTarget, but found the editor.selection is undefined for that case.

then this is a dead end?

@sennpang
Copy link
Contributor

sennpang commented Apr 7, 2022

#4914

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