GitPedia

Tiptap comment extension

Google-Docs ๐Ÿ“„๐Ÿ”ฅ like commenting ๐Ÿ’ฌ solution for Tiptap 2(https://tiptap.dev)

From sereneinserenadeยทUpdated June 16, 2026ยทView on GitHubยท

[Tiptap Extension](https://tiptap.dev/guide/custom-extensions) for having Google-Docs like pro-commenting in Tiptap. The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2021. Key topics include: google-docs, google-docs-clone, googledocs, inkline, react.

Latest release: v0.2.0

Tiptap Comment Extension:

<p align="center"> <img src="assets/logo.svg" width="200"/>

GitHub Sponsors
GitHub Repo stars
DM Me on Discord - sereneinserenade#4869

</p>

Tiptap Extension for having Google-Docs like pro-commenting in Tiptap.

Supports both TipTap 2 and TipTap 3.

A โญ๏ธ to the repo if you ๐Ÿ‘ / โค๏ธ what I'm doing would be much appreciated. If you're using this extension and making money from it, it'd be very kind of you to โค๏ธ Sponsor me. If you're looking for a dev to work you on your project's Rich Text Editor with or as a frontend developer, DM me on Discord/Twitter/LinkedIn๐Ÿ‘จโ€๐Ÿ’ป๐Ÿคฉ.

I've made a bunch of extensions for Tiptap 2, some of them are Resiable Images And Videos, Search and Replace, LanguageTool integration with tiptap. You can check it our here https://github.com/sereneinserenade#a-glance-of-my-projects.

Demo:

Try live demo: https://sereneinserenade.github.io/tiptap-comment-extension/

https://github.com/sereneinserenade/tiptap-comment-extension/assets/45892659/5d66b6b7-7de0-4cc4-bfe4-0ec00d34aa4a

How to use

bash
npm i @sereneinserenade/tiptap-comment-extension
ts
import StarterKit from "@tiptap/starter-kit"; import CommentExtension from "@sereneinserenade/tiptap-comment-extension"; /* or import { CommentExtension } from "@sereneinserenade/tiptap-comment-extension"; */ const extensions = [ StarterKit, Comment.configure({ HTMLAttributes: { class: "my-comment", }, onCommentActivated: (commentId) => { setActiveCommentId(commentId); if (commentId) setTimeout(() => focusCommentWithActiveId(commentId)); }, }), ];

For more details, look at react demo.

API:

Comment.configure

ts
Comment.configure({ HTMLAttributes: { class: "my-comment", }, onCommentActivated: (commentId) => { setActiveCommentId(commentId); if (commentId) setTimeout(() => focusCommentWithActiveId(commentId)); }, });

Commands:

  • setComment: Sets the comment for the current selection with the given commentId. <br/>
    Example: editor.commands.setComment('<a-comment-id>')
  • unsetComment: Unsets the comment for the given commentId. <br/>
    Example: editor.commands.unsetComment('<a-comment-id>')

Stargazers

Stargazers repo roster for @sereneinserenade/tiptap-comment-extension

Contributors

Showing top 4 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from sereneinserenade/tiptap-comment-extension via the GitHub API.Last fetched: 6/28/2026