telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
469 stars 218 forks source link

[Editor] Clicking on the ForeColor and BackColor tools reverts the font family and font size settings #4210

Open georgi-sla opened 8 months ago

georgi-sla commented 8 months ago

Describe the bug Currently, when the user modifies the default font size and font family using the built-in toolbar tools and clicks(without selecting) on the two buttons modifying the color and the background color of the text, the font family and font size settings revert to their default values.

To Reproduce

  1. Create an Editor component.
  2. Implement the kendoEditorFontFamily, kendoEditorFontSize, kendoEditorForeColor, and kendoEditorBackColor tools.
  3. Modify the default font size and font family using the designated toolbar tools.
  4. Type some text in the Editor component.
  5. Click on either the kendoEditorForeColor or kendoEditorBackColor buttons. It is important only to click on the two buttons without opening their designated popups or making any selection.

Please, check out the following StackBlitz demo: https://stackblitz.com/edit/angular-2mtzav

Expected behavior Clicking on the two buttons should not revert the modified settings for the font size and font family.

Screenshots Please, check out the attached screen recording:

https://github.com/telerik/kendo-angular/assets/108671673/8537cdd6-24bf-4960-909d-1db8adfcf9a8