Skip to content

fix(editor): Fixed events for multiple editors by making them not global#503

Merged
Darginec05 merged 1 commit intoyoopta-editor:masterfrom
OpenOrion:master
May 27, 2025
Merged

fix(editor): Fixed events for multiple editors by making them not global#503
Darginec05 merged 1 commit intoyoopta-editor:masterfrom
OpenOrion:master

Conversation

@afshawnlotfi
Copy link
Copy Markdown
Contributor

@afshawnlotfi afshawnlotfi commented May 10, 2025

Description

#466

When there are multiple instances of the YooptaEditor the onChange event is triggered for all instances with the same value AND

Also if you perform undo redo actions with ctrl+z and ctrl+y they are applied for all editor instances not only for the focused one (WIP)

Fixes # (issue)

I have made it such that the editors have their own local events instead of global and now callbacks are local per editor instantiation.

Type of change

Please tick the relevant option.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • [ X I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

@vercel
Copy link
Copy Markdown

vercel bot commented May 10, 2025

@afshawnlotfi is attempting to deploy a commit to the dargo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Darginec05
Copy link
Copy Markdown
Collaborator

super! will be merged soon

@Darginec05 Darginec05 merged commit 6f96052 into yoopta-editor:master May 27, 2025
1 check failed
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