nozer / quill-delta-to-html

Converts Quill's delta ops to HTML
MIT License
404 stars 95 forks source link

Quill 2 #128

Open paleo opened 5 months ago

paleo commented 5 months ago

Hi, Quill 2 has been released.

It uses quill-delta 5.1.

Do you think that quill-delta-to-html can still be used safely on the new Quill 2?

uniquejava commented 4 months ago

I think quill 2 has direct support for getting html,

const quill2Html = quill.getSemanticHTML()

Correct me if I am wrong.

paleo commented 4 months ago

I saw that, and getSemanticHTML surely is fine. But I use quill-delta-to-html server side. It's powerful: I don't need to store the content in both HTML and delta, and I am able to render my custom blots differently in the editor and on the result webpage.

Libpzzz commented 1 month ago

我看到了,getSemanticHTML确实没问题。但我在服务器端使用quill-delta-to-html。它功能强大:我不需要同时将内容存储在 HTML 和 delta 中,并且我能够在编辑器和结果网页上以不同的方式呈现我的自定义图块。

I saw that, and getSemanticHTML surely is fine. But I use quill-delta-to-html server side. It's powerful: I don't need to store the content in both HTML and delta, and I am able to render my custom blots differently in the editor and on the result webpage.

Have you solved it yet?