79129308

Date: 2024-10-26 19:24:13
Score: 0.5
Natty:
Report link

When you use ClassicEditor form '@ckeditor/ckeditor5-build-classic', it realy have Mention plugin, so you don't need install '@ckeditor/ckeditor5-mention'

     import { CKEditor } from '@ckeditor/ckeditor5-react'
     import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
    
     const CreatePage = () => {
     return (
     <div>
       <h2>CKEditor with Mentions</h2>
       <CKEditor
         editor={ClassicEditor}
         config={{
           mention: {
             feeds: [
               {
                  marker: "@",
                  feed: ["Alice", "Bob", "Charlie"],
                },
              ],
           },
        }}
      />
     </div>
     )
    }
    
    export default CreatePage`
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: Ning