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

fix: allowing 'ref' access for 'EditorContent' in react #4471

Conversation

sereneinserenade
Copy link
Contributor

@sereneinserenade sereneinserenade commented Sep 24, 2023

Please describe your changes

Adding forwardRef to EditorContentWithKey

How did you accomplish your changes

by adding a forwardRef on EditorContentWithKey

How have you tested your changes

By creating my own version of EditorContentWithKey with forwardRef and testing it in my project.

How can we verify your changes

Use the new version with ref on EditorContent and it should not throw any warning/errors for using ref on a functional component.

Remarks

[add any additional remarks here]

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

#4470

@netlify
Copy link

netlify bot commented Sep 24, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit cb1668d
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/6557477d3a20fb0008031ea7
😎 Deploy Preview https://deploy-preview-4471--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ioma8
Copy link

ioma8 commented Nov 14, 2023

Can this be reviewed and merged?

@janthurau janthurau force-pushed the fix/accessing-editor-content-with-ref-react branch from 2f8e3f7 to cb1668d Compare November 17, 2023 10:59
@nperez0111
Copy link
Contributor

Resolved with: #4396

@nperez0111 nperez0111 closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants