Skip to content

Conversation

@backportbot
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 <[email protected]>
@backportbot backportbot bot requested review from max-nextcloud and mejo- 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.

3 participants