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(addContent): only process addExtensions once #6602

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

max-nextcloud
Copy link
Collaborator

Use editor.options.extensions.
This only includes the extensions that were configured
when instantiating the editor.
It does not include the extensions these extensions added.

generateJSON will process the provided extensions
and add extensions according to their addExtensions field.

Before we used editor.editorManager.extensions
which includes all extensions used in the editor
including those added by other extensions.
This lead to generateJSON adding the same extensions again
which resulted in a warning.

Use `editor.options.extensions`.
This only includes the extensions that were configured
when instantiating the editor.
It does not include the extensions these extensions added.

`generateJSON` will process the provided extensions
and add extensions according to their `addExtensions` field.

Before we used `editor.editorManager.extensions`
which includes all extensions used in the editor
including those added by other extensions.
This lead to `generateJSON` adding the same extensions again
which resulted in a warning.

Signed-off-by: Max <[email protected]>
@max-nextcloud
Copy link
Collaborator Author

/backport to stable30

Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Thanks for the swift fix ❤️

@mejo-
Copy link
Member

mejo- commented Nov 5, 2024

/backport to stable29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants