kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
678 stars 360 forks source link

When two angular-editors are open, the highlight on the second is not working #522

Open cristi123040124901 opened 1 year ago

cristi123040124901 commented 1 year ago

https://stackblitz.com/edit/angular-editor-wysiwyg-nrfsoc?file=src%2Fapp%2Fapp.component.html

Hello,

I have this demo with two angular-editors opened. If you click on any button (e.g. justify center, bold) in the second component, the buttons in the first one will get highlighted, and the buttons in the second component will remain as initial.

KleeKitz commented 10 months ago

You should specify the id of the editor as shown in the ReadMe, that way each one can be uniquely referred to.

Updated StackBlitz: https://stackblitz.com/edit/angular-editor-wysiwyg-b8kfbs?file=src%2Fapp%2Fapp.component.html

image