-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
editor.insertText never gets called inside plugins on android #4709
Comments
sorry not sure why the cross platform label was added, I did choose bug for specific platform |
I took a look at this issue, and if I change this line
Editor.insertText , the plugins work again.I am unsure if this is the correct fix because I don't know when Editor.insertText should be used instead of Transforms.insertText . The regular Editable component uses both.I hope this helps narrow down the issue 🤞 |
fwiw, I think the label gets applied when something breaks cross-platform compatibility. |
So yes, overriding My suggestion would be to raise a PR that replaces the Transforms calls with Editor so that all calls with the React editor can be extended/overridden consistently. I'm happy to review a PR or work on it when time permits. |
@alessiogaldy @dylans thanks so much for sorting this out |
Description
if you create a withMyPlugin and have it override the editor.insertText function, the function is never called when inserting text on an android device
Steps
create a plugin and override the editor.insertText function, console.log the output, it never gets called on android
Expectation
the editor.insertText function is called like other functions when user enters text on andorid
Environment
The text was updated successfully, but these errors were encountered: