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

[stable29] fix(addContent): only process addExtensions once #6617

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Nov 7, 2024

Backport of PR #6605

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>
@backportbot backportbot bot requested review from mejo- and max-nextcloud November 7, 2024 15:53
@backportbot backportbot bot added bug Something isn't working 3. to review labels Nov 7, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.10 milestone Nov 7, 2024
@mejo- mejo- changed the title [stable29] [stable30] fix(addContent): only process addExtensions once [stable29] fix(addContent): only process addExtensions once Nov 7, 2024
@juliusknorr juliusknorr merged commit 3bdfc00 into stable29 Nov 7, 2024
59 checks passed
@juliusknorr juliusknorr deleted the backport/6605/stable29 branch November 7, 2024 18:16
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
4 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.

2 participants