How to add image in Quill JS?

后端 未结 4 1796
耶瑟儿~
耶瑟儿~ 2021-02-02 14:51

I can\'t figure out how to get images to work like in the example on http://quilljs.com/.

I tried adding

4条回答
  •  无人及你
    2021-02-02 15:36

    well the above answer is the correct in the js, but you have to add html to the editor, example:

    
      
      
      
    
    

    so after that put in the js

    quill = new Quill('#editor', {
      modules: {
        'toolbar': { container: '#toolbar' },
        'image-tooltip': true,
        'link-tooltip': true
      },
      theme: 'snow'
    });
    

提交回复
热议问题