Replies: 1 comment 1 reply
-
I've never heard of mobile keyboards not sending paste events. I tested pasting HTML into a vanilla contenteditable using the paste button in the iOS balloon toolbar, and I was able to receive a paste event containing the correct |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a custom plugin to
transformFragment
whenever user pastes something into the editor. Basically, I look for @username in the pasted fragment and convert it to the MENTION node. It works fine on desktop, but does not work when user pastes via Android / iOS keyboard.Infact,
createInsertDataPlugin
is not invoked at all. My plugin is kinda like thisI researched a bit and turns out soft keyboard on mobiles do not trigger paste event for text? Is there a better way to do this or any workaround?
Beta Was this translation helpful? Give feedback.
All reactions