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

Button states not working in Chrome #500

Open sommermi opened 1 year ago

sommermi commented 1 year ago

Hello,

first of all thanks for sharing your editor. I want to use it in my project but unfortunately the button state does not work as expected.

Affected Version: 1.2.0

I have simply added the editor via:

<angular-editor id="editor" formControlName="htmlContent"></angular-editor>

The superscript and subscript buttons show strange behavior. Once pressed it is impossible to remove the selection. A new press only adds a new level of sub/superscription. The issue appears in Chrome (Currently installed 94.0.4606.7).

In Firefox everything works as expected.

I have attached a short video showing the issue.

Best regards Michael

https://user-images.githubusercontent.com/18287434/206158244-56251866-5a9a-40e2-a0fc-f0f43925855e.mp4