Last Updated: 26 Aug 2019 08:25 by Nitin
Created on: 26 Aug 2019 08:25
Category: Editor
Type: Bug Report
Wrong text formatting in the Editor after resetting the font of a text in it

Bug report

When setting a special font of a given paragraph in the Editor component, if the "x" of the Font dropdown is pressed it will reset the font of this text to the default one. If we then want to change the format of a given paragraph(make it bold for example), we select the paragraph and click on the "Bold" button. The text which is being bolded is the one which font was previously reset, not the selected text which we expect to become bold.

Reproduction of the problem

  1. Open this Dojo and select a random text in the Editor
  2. Change the font of the selected text by choosing one from the "Fonts" dropdown
  3. After changing the font keep the text selection and click on the "x" in the "Fonts" dropdown. The font of the selected paragraph will be reset to the default one.
  4. Select a random text chunk in the Editor and click on the "Bold" button.
  5. See that the bolded text is not the one we expect to be, but the text which font we've reset.

The reported behavior is applicable to all styles - bold, italic, underline, text alignment, ul, ol.

Current behavior

When changing the style of a given selected text, after there was a font reset in the Editor, the new formatting we set is being applied on the text which font was reset, not on the selected one.

Expected/desired behavior

No matter the operations performed in the Editor when formatting a selected text, the format changes should be applied to the selected text only.


  • Kendo UI version: 2019.2.619
  • jQuery version: x.y
  • Browser: [all]