Skip to content

fix(updateFromContent): destroy editor at end of setContent() - #9074

Merged
mejo- merged 1 commit into
mainfrom
fix/update_from_content_destroy_editor
Aug 17, 2026
Merged

fix(updateFromContent): destroy editor at end of setContent()#9074
mejo- merged 1 commit into
mainfrom
fix/update_from_content_destroy_editor

Conversation

@mejo-

@mejo- mejo- commented Aug 17, 2026

Copy link
Copy Markdown
Member

The hope is that this fixes vitest failures like the following:

ReferenceError: document is not defined
[...]
This error originated in "src/tests/helpers/updateFromContent.spec.ts"
test file. [...]

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The analysis of failing tests was done partly using AI tools

The hope is that this fixes vitest failures like the following:

> ReferenceError: document is not defined
> [...]
> This error originated in "src/tests/helpers/updateFromContent.spec.ts"
> test file. [...]

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this Aug 17, 2026
@mejo- mejo- added the bug Something isn't working label Aug 17, 2026
@mejo- mejo- added tests If you write them we ♥ you 3. to review labels Aug 17, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Aug 17, 2026
@mejo-

mejo- commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

/backport to stable34

@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Aug 17, 2026
@mejo-
mejo- merged commit 8380790 into main Aug 17, 2026
63 of 64 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Aug 17, 2026
@mejo-
mejo- deleted the fix/update_from_content_destroy_editor branch August 17, 2026 12:38
@nextcloud nextcloud deleted a comment from backportbot Bot Aug 17, 2026
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 tests If you write them we ♥ you

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants