Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Feb 9, 2026

Backport of #8233

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested a review from mejo- February 9, 2026 07:24
@backportbot backportbot bot added this to the Nextcloud 32.0.6 milestone Feb 9, 2026
@backportbot backportbot bot self-assigned this Feb 9, 2026
@max-nextcloud max-nextcloud changed the title [stable32] [stable33] fix(viewer): mount text vue instance explicitely [stable32] fix(viewer): mount text vue instance explicitely Feb 9, 2026
The component configured in the viewer handler
is instantiated from the vue module inside the viewer.

We want to use our own vue module
so create an instance with an import of our own vue and mount it.

This fixes warnings in development like $attrs is readonly.
Also makes the vue2 dev tools work.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the backport/8233/stable32 branch from 37522bd to 472f076 Compare February 9, 2026 07:50
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 67.85714% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/ViewerComponent.vue 0.00% 6 Missing ⚠️
src/viewer.js 0.00% 2 Missing ⚠️
src/views/RichWorkspace.vue 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

It is not needed anymore now that the editor is always imported from text.

Previously the ViewerComponent was used directly from the viewer
which resulted in the editor and thus yjs being imported in two different ways.

Signed-off-by: Max <max@nextcloud.com>
Viewer hands a lot of props to the component.
We need to pick the ones we actually need and set
`inheritAttrs` to false
so the others are not added to the dom.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the backport/8233/stable32 branch from 472f076 to 49c891c Compare February 9, 2026 07:59
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.

1 participant