Unplanned
Last Updated: 28 Mar 2023 13:55 by Barbara
Barbara
Created on: 28 Mar 2023 13:55
Category: Editor
Type: Bug Report
1
Underline Text-Decoration Not Rendering on Paste

Bug report

Using Edge/Chrome, upon pasting underline text in the Kendo UI Editor, the content is rendered underline, but the UI doesn't highlight the button. In turn, if the user toggles the underline style for parts of the text, it doesn't work. At this point, the button is now highlighted for the part, but switching back to no underline style doesn't have any effect regarding the rendering. Removing the style for the whole line does work as expected.

Reproduction of the problem

  1. Open Editor demo and enter some text, containing an underline.

UnderlineTextStep1

  1. Copy the entered text and reload page
  2. Paste content at the start of the document. The text is not recognized as underline text

UnderlineTextStep3

  1. Select part of the text and toggle underline. Part of the text is recognized as underlined text now.

UnderlineTextStep4A
UnderlineTextStep4B

Expected/desired behavior

The underlined text decoration should be recognized by the UI and display.

Additional Notes

As a comparison, here is the content after paste:

Edge/Chrome

<p><span style="text-decoration-line:underline;">some text with underline</span></p>

FireFox - which is working

<p><span style="text-decoration:underline;">some text with underline</span></p>

Environment

  • Kendo UI version: 2023.1.314
  • jQuery version: All supported versions
  • Browser: Chrome 111.0.5563.111 | Edge 111.0.1661.54
0 comments