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

[stable30] fix(addContent): only process addExtensions once #6605

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

max-nextcloud
Copy link
Collaborator

Backport #6602.

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 <max@nextcloud.com>
@max-nextcloud max-nextcloud added bug Something isn't working 3. to review labels Nov 6, 2024
@max-nextcloud max-nextcloud added this to the Nextcloud 30.0.2 milestone Nov 6, 2024
@max-nextcloud
Copy link
Collaborator Author

/backport to stable29

@max-nextcloud max-nextcloud changed the title fix(addContent): only process addExtensions once [stable30] fix(addContent): only process addExtensions once Nov 6, 2024
@Altahrim Altahrim mentioned this pull request Nov 7, 2024
10 tasks
@mejo- mejo- merged commit 85b483d into stable30 Nov 7, 2024
60 of 61 checks passed
@mejo- mejo- deleted the backport/6602/stable30 branch November 7, 2024 15:52
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants