Unplanned
Last Updated: 30 Jan 2024 09:35 by Dawid
Dawid
Created on: 30 Jan 2024 09:35
Category: Editor
Type: Bug Report
1
Editor with semantic mode disabled add style attribute instead of font attribute when changing the font size

Bug report

When the serialization.semantic is set to false and the user uses the viewHtml tool and press 'Update' then after chaning the font-size, the style attribute is added to the element instead of the font attribute.

Reproduction of the problem

  1. Open the Dojo - https://dojo.telerik.com/@NeliKondova/iVICefOb
  2. Add some text and change its font. If you inspect the content at this stage, the font size will be applied using the font attribute: <font size="4">хххх</font>
  3. Press 'Update' button in the viewHtml dialog.
  4. Press 'Enter' to add paragraph.
  5. Change the font size and enter some text.
  6. Inspect the content or open the ViewHtml.

Current behavior

The font-size after pressing the 'Update' button is applied using the style attribute

    <p>aaaaaa</p>
    <p><font size="1">bbbbbbb</font></p>
    <p><font style="font-size: small;">ccccccc</font></p>

screencast - https://screenpal.com/watch/cZVvQtVJ8oz

Expected/desired behavior

When the semantic mode is set to false and the 'Update' button in the viewHtml tool is clicked the font size should be applied as initially - using the font attribute.

Environment

  • Kendo UI version: 2023.3.1114
  • Browser: [all ]
0 comments