tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
324 stars 93 forks source link

ngFor directive filter not filtering the editor values #183

Closed dssantana-zz closed 3 years ago

dssantana-zz commented 3 years ago

Editor values remain in the filtered records event though I'm filtering them. Example below:

Editor Config public defaultConfig: any = { height: 700, base_url: '/tinymce', suffix: '.min', plugins: [ 'noneditable emoticons advlist autolink lists link charmap anchor', 'searchreplace visualblocks code', 'insertdatetime table paste wordcount codesample' ], menubar: false, toolbar: false ] };

Editor tag `

  </mat-card-content>`

When using a filter directive in angular, my components are being filtered as per the filter criteria but when the last item remains (originally with no data in editor), it is showing data of filtered value in tinyMce editor. It's like the dom is being not refreshed. Can you help me here please? Thanks

jscasca commented 3 years ago

Hi @dssantana

I don't think I follow, what is the expected outcome here? What is being filtered filtered here? Can you provide a replication sandbox of the issue?

All I'm seeing is an or for the review.review value.

dssantana-zz commented 3 years ago

Hi @jscasca Let's close the issue, I figured it. it is happening when using a trackId method. I took out the trackId of the ngFor and is filtering perfectly <app-quote-item *ngFor="let row of filteredQuotes; index as i" [quote]="row" [index]="i">