Skip to content

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 16, 2025

Backport of PR #7643

Set content after providing the editor.

If the content contains links the editor renders `PreviewOptions`.

Rendering another component breaks the context of the setup function.
Namely `setCurrentInstance` gets called in the vue runtime
overwriting the current instance.

This leads to `provide` not working anymore as it has no current instance
to work with.

Signed-off-by: Max <max@nextcloud.com>
Make use of the `useEditorMethods` `setContent` in BaseReader
which already handles markdown and plaintext well.

Remove the now suprefluous `renderHtml` provide & inject.

Signed-off-by: Max <max@nextcloud.com>
@codecov
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.69%. Comparing base (7ec3246) to head (b775189).
⚠️ Report is 3 commits behind head on stable32.

Additional details and impacted files
@@             Coverage Diff              @@
##           stable32    #7646      +/-   ##
============================================
+ Coverage     52.92%   59.69%   +6.77%     
============================================
  Files           503      502       -1     
  Lines         43807    38847    -4960     
  Branches       1129     1128       -1     
============================================
+ Hits          23184    23191       +7     
+ Misses        20514    15548    -4966     
+ Partials        109      108       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blizzz blizzz merged commit 3478124 into stable32 Sep 16, 2025
65 of 66 checks passed
@blizzz blizzz deleted the backport/7643/stable32 branch September 16, 2025 21:43
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
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.

4 participants