Repository navigation
fix(editor): keep the document's styles out of reference widgets - #9756
Open
jospoortvliet wants to merge 3 commits into
Open
jospoortvliet wants to merge 3 commits into
jospoortvliet wants to merge 3 commits into
Conversation
A widget renders content that belongs to another app and brings its own styles, but the editor's list rules reached into it: every list item a widget rendered got a bullet and an indent from the document around it. A Talk conversation embedded in a document showed a bullet in front of every chat message. Assisted-by: ClaudeCode:claude-opus-5 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Jos Poortvliet <551757+jospoortvliet@users.noreply.github.com>
A widget is not document text, but the link rule of the editor reaches into it all the same, so every link a widget renders - a conversation name, a participant, a board - comes out blue and underlined. Assisted-by: ClaudeCode:claude-opus-5 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Jos Poortvliet <551757+jospoortvliet@users.noreply.github.com>
jospoortvliet
marked this pull request as ready for review
December 1, 2026 15:48
jospoortvliet
requested review from
max-nextcloud,
mejo- and
silverkszlo
as code owners
December 1, 2026 15:48
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
The editor's list and link rules are scoped to
div.ProseMirror, which includes the node views apps render reference widgets into. A widget renders content that belongs to another app and brings its own styles, so the document'slist-style-type,padding-inline-start, link colour and underline leaked into it.A Talk conversation embedded in a document showed a bullet in front of every chat message, and an underlined blue conversation name, participant name and message link. This resets the list and link properties inside
.widgets--listso the widget's own styles apply.It is not Talk-specific: any widget that renders a list or a link — Deck, Tables, Collectives — hits the same thing.
🖼️ Screenshots
🚧 TODO
🏁 Checklist
🤖 AI (if applicable)
🤖 Generated with Claude Code