How to add image in Quill JS?

后端 未结 4 1795
耶瑟儿~
耶瑟儿~ 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:11

    Edit: This is no longer accurate as of 1.0. Chris Hawkes's answer is correct.

    This unfortunately doesn't seem documented anywhere but you need to include the image-tooltip module. For example, this is what the editor on the quilljs.com homepage uses:

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

提交回复
热议问题