Unplanned
Last Updated: 16 Nov 2026 13:25 by Lukasz
Lukasz
Created on: 16 Nov 2026 13:25
Category: Editor
Type: Bug Report
1
Added Empty Line Using ColorPickers With Editor

Bug report

After the user picks a font color or background color from the Editor toolbar (foreColor / backColor), the editor keeps a stale saved range in editor._range. Later commands, including Enter (the insertParagraph tool, key: 13), call editor.exec, which selects that._range || that.getRange(), so they run at the stale position instead of the live caret.

Reproduction of the problem

  1. Go to this Progress Kendo UI Dojo.
  2. Pick a color from one of the colorpickers.
  3. In the empty space, type "dd" and press enter.
  4. Type "x".

Current behavior

The result will add an empty paragraph above the text instead of inbetween the text. In this example:

<p>&nbsp;</p>
<p><span style="color:#ff00ff;">xdd</span></p>

Expected/desired behavior

The enter separates the text and the styling is applied as expected. For example(Progress Kendo UI Dojo)

<p><span style="color:#ff00ff;">dd</span></p>
<p><span style="color:#ff00ff;">x</span></p>

Environment

  • Kendo/Telerik version: 2026.3.1015
  • jQuery version: 4.0.0
  • Browser: all
0 comments