Skip to content

HAR-9057 - superdoc event - bubbling up update event#440

Merged
harbournick merged 1 commit intomainfrom
HAR-9057_2
Apr 2, 2025
Merged

HAR-9057 - superdoc event - bubbling up update event#440
harbournick merged 1 commit intomainfrom
HAR-9057_2

Conversation

@mattConnHarbour
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small change

Comment thread packages/superdoc/src/core/SuperDoc.js Outdated
this.on('pdf-document-ready', this.config.onPdfDocumentReady);
this.on('sidebar-toggle', this.config.onSidebarToggle);
this.on('collaboration-ready', this.config.onCollaborationReady);
this.on('update', this.config.onEditorUpdate);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the event here should just be 'update' because this specifically relates to editor updates. SuperDoc also handles multiple documents, comments... PDF documents, all of which can have 'update' events but that won't be relevant here. we should keep something like 'editor-update'

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick harbournick merged commit d14f971 into main Apr 2, 2025
6 checks passed
@harbournick harbournick deleted the HAR-9057_2 branch April 2, 2025 00:02
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