Editor: Not displaying correctly in dialog after content change and dialog reopen #12195
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
This is a followup to #11814. That issue was fixed such that opening a dialog with editor content is displayed correctly. However, if you close the dialog, reset the content of the editor's form control value, and reopen the dialog, the content is not displayed correctly - its formatting is lost and it is displayed in a single paragraph HTML tag.
Environment
Applicable to versions described below
Reproducer
https://stackblitz.com/edit/primeng-editor-in-dialog-bug-qf2o4p
Angular version
14.0.7
PrimeNG version
14.2.1
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
14.21.1
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The formatting of the content of an editor in a dialog should be the same no matter how many times you change the form control's value and close/reopen the dialog.
The text was updated successfully, but these errors were encountered: