Skip to content

Inline comment on selected text - not working on first comment or replacing selection #9257

Description

@bentuna

Describe the bug
When you select some text and then click the "Comment" button, the selection is deleted and replaced by the comment icon. This is very unexpected.

To Reproduce
Steps to reproduce the behavior:

  1. Open a text file with no comments yet and select some text in it
  2. Click on 'Comment'
  3. See how there is no comment created (Bug 1)
  4. Unselect the text and click on 'Comment' again
  5. See how a comment is created at the position of the cursor
  6. Select some text again and click on 'Comment'
  7. See how there is a comment created now but replaced your selected text (Bug 2)

Expected behavior
Creating comments should always work with selected text (not only after the first comment). The selected text should be in some way highlighted and not be deleted when creating a comment.

Server details:

  • Nextcloud version: 35.0.0

Activity

  1. mejo- commented on Sep 25, 2026

    @mejo-
    Member

    Thanks @bentuna! This is going to be fixed by #9252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions