Skip to content

Conversation

@palkerecsenyi
Copy link
Member

@palkerecsenyi palkerecsenyi commented Nov 10, 2025

Closes #491


  • Added a button in the comment action dropdown to quote that comment's contents in the new comment. When clicked, it appends the comment's contents to the RichEditor (inside a blockquote).

  • Added a tooltip that renders above any text highlighted within comments and is dynamically positioned to be in the midpoint of the selection. The tooltip contains a "Quote" button and a "Copy" button. When "Quote" is clicked, it performs the same action as above, but just for the selected portion of text.

  • Formatting is only kept in the quote for the first method, due to the complexities of propagating HTML formatting for partial selections.

  • The blockquote currently has no real pointer to the quoted comment, and is freely editable by the user.

Preview

new.mp4

To-do

  • Improve appearance of buttons within the tooltip. Maybe make them more streamline with the tooltip container and add an icon.
  • Auto-focus and scroll to editor when quote is clicked
  • Ensure correct display when quoting comments with quoted content.
  • Discuss if this solution is sufficient for our needs, or if we want some sort of pointer to the quoted comment
    • We will start with this and merge it, then see later if there's any demand for some sort of reference to the quoted comment

@palkerecsenyi palkerecsenyi force-pushed the quote-replies branch 6 times, most recently from 9f1e9b4 to 7623e05 Compare November 20, 2025 13:35
@palkerecsenyi palkerecsenyi marked this pull request as ready for review November 20, 2025 13:38
* Added a button in the comment action dropdown to qute that comment's
contents in the new comment. When clicked, it appends the comment's
contents to the RichEditor (inside a blockquote).

* Added a tooltip that renders above any text highlighted within
comments and is dynamically positioned to be in the midpoint of the
selection. The tooltip contains a "Quote" button and a "Copy" button.
When "Quote" is clicked, it performs the same action as above, but just
for the selected portion of text.

* Formatting is only kept in the quote for the first method, due to the
complexities of propagating HTML formatting for partial selections.

* The blockquote currently has no real pointer to the quoted comment,
and is freely editable by the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable "Quote and reply" functionality ala GH

1 participant