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

Rich Text Component - Insert image using Copy Paste #1730

Closed
yamilnb opened this issue Jan 4, 2024 · 4 comments
Closed

Rich Text Component - Insert image using Copy Paste #1730

yamilnb opened this issue Jan 4, 2024 · 4 comments

Comments

@yamilnb
Copy link

yamilnb commented Jan 4, 2024

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!

Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: 3.15.0

Expected / Desired Behavior / Question

In the Rich Text editing mode, the ability to insert images using the clipboard (copy and paste) is required.

Observed Behavior

Images inserted via the clipboard are not rendered correctly within the control and are not saved in the SharePoint field.

Steps to Reproduce

  1. Copy an image from the web or locally.
  2. Paste the image within the Rich Text control.
  3. Save the Rich Text content within the SharePoint field
  4. Open the edited or created item to view the image content.

image

image

@ghost
Copy link

ghost commented Jan 4, 2024

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Jan 4, 2024
Copy link

github-actions bot commented Jan 4, 2024

Thank you for submitting your first issue to this project.

@michaelmaillot
Copy link
Collaborator

Hi @yamilnb,

Thank you for this feedback. There's a real concern regarding image pasting in a SharePoint field. As you may know, in the actual rich text native field on a SP list, you can't add insert image from local without first uploading it in the hosting site. And this can be done only from the "classic experience" of the rich text field.

That said, I did try to paste an image from the web in a SPFx Form Customizer sample which is using the RichText component and linked to a SP field, it worked.

Do you a code snippet that demonstrates how do you save the RichText content in SharePoint? I would like to repro the issue.

@yamilnb
Copy link
Author

yamilnb commented Jul 8, 2024

@michaelmaillot,

Thanks for the feedback.

The issue appears when I try to copy and paste a local image and in fact, It aslo happen with native SharePoint field.

Regards.

@yamilnb yamilnb closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants