The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
When I add Multiple richtexteditor dynamic so how can I declare viewChild in ts file ? If I remove viewChild (#imgRte) in html file so it will give an error.
VJVinitha Jeyakumar Syncfusion Team November 17, 2022 10:16 AM UTC
Hi Lee,
We can achieve your requirement by usingngForcondition. For every button click we pushed the id value into an array and then rendered the RichTextEditor component. based on that id value, you can get the instance of each Rich Text Editor.
Code snippet:
<div*ngFor="let id of countArray">
<ejs-richtexteditorid="{{ id }}">
<ng-template#valueTemplate>
<p>
The Rich Text Editor component is a WYSIWYG ("what you see is what you
get") editor that provides the best user experience to create and
update the content. Users can format their content using standard