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(core): make setEditable trigger all 'update' listeners #3140

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Rhys-T
Copy link
Contributor

@Rhys-T Rhys-T commented Aug 30, 2022

Followup to #2935 (comment). This makes setEditable fire an update event through the EventEmitter API, rather than calling options.onUpdate directly. This is more consistent with the rest of the code, and allows things like node views to use .on('update', ...) to start watching the status of isEditable after the editor has been created.

@netlify
Copy link

netlify bot commented Aug 30, 2022

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit da4d407
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/630e77300d964c0008b0fb0b
😎 Deploy Preview https://deploy-preview-3140--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 settings.

@bdbch bdbch merged commit 4851fc5 into ueberdosis:main Sep 1, 2022
@Rhys-T Rhys-T deleted the fix/set-editable-emit-update branch September 1, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants