vueup / vue-quill

Rich Text Editor Component for Vue 3.
https://vueup.github.io/vue-quill/
MIT License
1.08k stars 261 forks source link

New line autoreplace and remove #547

Open Zarkheim opened 3 months ago

Zarkheim commented 3 months ago

Hello,

We recently switch to quill on our app, and a lot of content comes from our database. However some content, like the below example :

<ul>
<li style="box-sizing: inherit;">Test</li>
<li style="box-sizing: inherit;">Test</li>
<li style="box-sizing: inherit;">Test</li>
<li>&nbsp;</li>
</ul> 

Are automaticaly removed or replace, and we have this as a result :

<p><br></p><p> </p>

Is there a solution to avoid this problem ? Thanks a lot !

cornelRaiu commented 1 month ago

@Zarkheim maybe try to add the content type prop like so:

<QuillEditor content-type="html" v-model:content="someHtmlContent" />.