Closed fitterfly-jainam closed 1 year ago
Closing this issue as I've got a workaround for my use case.
SOLN: I created an object of objects with initialising "new Editor()" in each object.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
What happened?
Hi, I have a simple use case where I want to Auto Populate content in my NgxEditor but the editor is used in a NgFor loop and it only auto-populates the last instance of the editor among all.
I tried auto-populating with ngModel and even tried using Reactive Forms but none of them were able to fulfil my use case.
I have multiple Mat Expansion Panels in which I have NgxEditor which should be auto populated in any matter. I'm trying to update my NgModel binded variable everytime I open my Mat Expansion Panel, but it seems to be not working. Below is the relevant code.
Here I'm updating my NgModeled bounded variable every time with it's new value in the onPanelOpen method. Mat Expansion panels have NgxEditor in it but it is not able to auto populate itself with the content. It is only able to display content of the last panel's Editor.
Can anyone help me here?
Version
v15.3.0
Angular Version
v14.3.0
What browsers are you seeing the problem on?
Chrome
Link to reproduce
No response
Relevant log output
No response
Willing to submit a PR?
None