sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
458 stars 191 forks source link

[Bug]: ngx-Editor text and text field hidden #434

Closed madhavanSPR closed 1 year ago

madhavanSPR commented 2 years ago

What happened?

when adding multiple ngx-editor on same page,

( 1 ) when I have one editor on top and typed something then add another editor on the same page, previous typed value automatically gone.

( 2 ) placing multiple editors column wise on the same page text field ( editor menu and editor ) only showing on last editor, other only have ( editor menu )

Version

v13

Angular Version

v13.1.3

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

No response

sibiraj-s commented 2 years ago

Make sure you are creating new Editor instance for each editor. If you use the same editor instance for all components. Only the last item will be rendered.

madhavanSPR commented 2 years ago

I created different instance for each editor but not working, I have two list one is cars and fruits, cars editor instance is carEditor and for fruit is fruitEditor

Example - list of fruits in dropdown [ 'apple', 'orange', 'banana' ] -> first I click 'apple' below apple text ngx-editor will show and I typed something then add orange from dropdown that time previous 'apple' ngx-editor refreshed and text automatically removed and two new ngx editor shown below 'apple' and 'orange'.

sibiraj-s commented 2 years ago

Sorry for the delay in response. Please share a reproducible stackblitz to help debug this better.

sibiraj-s commented 1 year ago

Please reopen the issue with a reproducible example if the issue still exists

github-actions[bot] commented 1 year ago

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.