software-mansion / software-mansion/react-native-enriched-html

[Feature request] onPaste event

Open
#514 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
1.4k
Forks
66
Avg merge
4d 19h
Merged PRs (30d)
11

Description

Is your feature request related to a problem? Please describe.

In my app, if a user pastes a very large piece of text, we convert this into a text file and attach it instead of sending it as text in the composer.

Describe the solution you'd like

Support for an onPaste event for text like we do for onPasteImages. Ideally, we have one even with text and images props so we only need one callback.

Describe alternatives you've considered

Right now, we have a very hacky solution where we check the value inside onChangeHtml. I'm not sure if it even works, it was generated by Claude. 😅

Additional context

None at the moment.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing onPasteImages callback and the onChangeHtml API in the React Native editor. Define the text and image data exposed through the paste callback, then verify that large text pastes invoke it and that the existing image-paste behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.