ngx-quill: Quill auto remove linebreak
I have some content render from server like:
<div>Sky Tour 2019 đánh dấu sự quay trở lại mạnh mẽ của Sơn Tùng M-TP,</div><div><br></div><div>ghi dấu bằng MV “Hãy Trao Cho Anh” ra mắt ngày 1/7</div>
But when I see on Quill editor, <div><br></div> was removed.
Here is my code:
import { QuillEditorComponent } from 'ngx-quill';
@ViewChild('editor') editor: QuillEditorComponent;
this.editor.modules = {
clipboard: {
matchVisual: true
}
}
How can I fix this? (keep the linebreak). Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (9 by maintainers)
Stackblitz reproducing the problem: https://stackblitz.com/edit/ngx-quill-line-break-bug