Opened 4 years ago

Last modified 2 years ago

#18854 new defect

IE11 RichText with EnterKeyHandling on DIV or P creates extraneous new lines on Backspace/Enter

Reported by: danielf Owned by: bill
Priority: undecided Milestone: 1.14
Component: Editor Version: 1.11.1
Keywords: Cc:
Blocked By: Blocking:

Description

This issue can be reproduced in the demo at http://demos.dojotoolkit.org/demos/editor/demo.html

To reproduce, add three lines of text, such as:

Test1
Test2
Test3

Place the cursor at the beginning of the Test2 line and press Backspace. This will produce:

Test1Test2
Test3

Now, with the selection between the 1 and the T still, press Enter. The expected result would be the original three lines of text. The actual result is:

Test1
Test2

Test3

This can be repeated multiple times to create multiple extraneous new lines. Note that if the original text entered has Test1Test2 on the same line together, selecting between the 1 and T and pressing Enter will exhibit the expected behavior.

The problem seems to come from an issue with IE giving different containers for the range. When Backspace has been used, the check on line 467 of EnterKeyHandling?.js, if(rs && rs.nodeType == 3) will not give a nodeType of 3.

The same sort of behavior is seen when collapsing lines together with Delete.

Change History (4)

comment:1 Changed 4 years ago by bill

Component: DijitEditor

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.11.3

comment:3 Changed 3 years ago by dylan

Milestone: 1.11.31.13

comment:4 Changed 2 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.