Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

216
Vistas
How to integrate Quill-comment with React-quill?

I currently have this Code SandBox where I am trying to get React-Quill and Quill-Comment to work together so that I can let users comment on content that has been written.

Edit strange-chebyshev-o428d8

Quill comment is not a react package and I am a react noob so I don't know if what I am trying to do it even possible. It appears to partially work because the toolbar add comment button registers the click event.

  let commentCallback;
  function commentAddClick(callback) {
    setOpen(true); //show the modal

    commentCallback = callback; //Appears to do nothing?
    console.log("callback :>> ", callback); //Nothing is ever in the callback
    console.log("commentAddClick");
  }

However, the callback value doesn't appear to have or do anything. When I click the add comment button in the modal:

const commentSave = () => {
    const comment = "This is a comment, forced for testing";
    commentCallback(comment);
    console.log("comment :>> ", comment);

    //let comment = $('#commentInput').val();
    commentCallback(comment);
    addCommentToList(comment, currentTimestamp);
  };

it throws an error that tells me

commentCallback is not a function

I am attempting to following the Vanilla JS example see line 68 here. I assume this problem is related to this warning message that spams on every keypress.

quill:toolbar ignoring attaching to nonexistent format comments-add 
<button type="button" class="ql-comments-add"></button>

How do I resolve the warning message, and get the callback to work? Or, secondarily, is there another good commenting library that will work with Quill?

A working example in Vanilla JS can be found here: https://github.com/nhaouari/quill-comment/tree/master/example/quill-comment-test

I'd like to replicate this in React.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda