How to create undo/redo buttons in Quill JS (react-quill)?

前端 未结 4 2006
傲寒
傲寒 2021-01-06 15:52

QuillJS doesn\'t come with default undo/redo buttons. I\'m trying to add them to the toolbar. Quill has a folder with the undo/redo icons saved. In the node_modules, there\'

4条回答
  •  时光说笑
    2021-01-06 16:01

    I just want to add something for developers who are using react-quill. on this line:

     var icons = Quill.import("ui/icons");
    

    You do not get Quill reference. so instead of the above line you can use:

     var icons = ReactQuill.Quill.import("ui/icons");
    

    This solves the problem for ReactQuill.

提交回复
热议问题