Get HTML from Delta on Quill

前端 未结 3 1739
天涯浪人
天涯浪人 2021-02-19 22:41

I am trying to get HTML code from delta on Quill.

This is my code






<         


        
3条回答
  •  梦谈多话
    2021-02-19 23:00

    in order to get any extra spaces the user has inserted, I use

    this.editor.root.innerHTML.split(' ').join('  ')

    (note, there are two spaces in the split and one space in the join!)

提交回复
热议问题