1.0.29 • Published 9 months ago

@michalklor/comments v1.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Comments plugin

We created a plugin that gives the ability to add comments between users over text in a RichText field, using Lexical

The user can add a comment on selected text to start a discussion about this content:

img1.png

Comments section is available on the right side of the screen and users can reply or delete comments

img2.png

In addition, commented text has a mark

when clicking on the mark, it open the comments panel on the right side with focus on the current comment

img3.png

Plugin Installation and Usage

Follow these steps to install and use the plugin in your Payload CMS project.

1. Enable Comments in Your Collection

In the collection where you want to use the plugin, add the following configuration under the admin section:

admin: {
  custom: {
    comments: true,
  },
},

2. Configure the Rich Text Field

For the rich text field where you want the plugin features, include the following editor configuration:

fields: [
  {
    name: 'richText',
    label: 'Rich Text',
    type: 'richText',
    editor: lexicalEditor({
      features: ({}) => [FixedToolbarFeature(), commentFeature()],
    }),
  },
];
1.0.29

9 months ago

1.0.28

9 months ago

1.0.27

9 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago