Latest version doesnt supporting dynamically create editor in a for loop angular #410
-
How to use multiple editor on same page ? class AppComponent {
editor: Editor;
ngOnInit(): void {
// this cant create if your using for loop, without creating instance of this Editor, it wont work
this.editor = new Editor();
}
} <div class="NgxEditor__Wrapper">
<ngx-editor-menu [editor]="editor"> </ngx-editor-menu>
<ngx-editor
[editor]="editor"
[ngModel]="html"
[disabled]="false"
[placeholder]="'Type here...'"
></ngx-editor>
</div> any idea of how to use in for loop ? |
Beta Was this translation helpful? Give feedback.
Answered by
sibiraj-s
Jun 7, 2022
Replies: 1 comment 3 replies
-
You can create a component and intitalize the editor inside it, then loop the component instead. rather than initializing the editor on loop |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
sibiraj-s
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a component and intitalize the editor inside it, then loop the component instead. rather than initializing the editor on loop