Opened 9 years ago

Closed 9 years ago

#10497 closed defect (fixed)

Editor with content starting with text followed by p : error on IE

Reported by: jfcunat Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.4.1
Component: Editor Version: 1.4.0
Keywords: editor Cc:
Blocked By: Blocking:

Description

When using default Editor with dijit._editor.plugins.EnterKeyHandling?, if the initial text starts with plain text and is followed by a p tag, it fires an error in IE.

This is because of the treatment done by dijit._editor.plugins.EnterKeyHandling? in regularPsToSingleLinePs function

Proposed patch joined : simply test the nodeType for p previousSibling and modified test_Editor.html that shows the problem

Attachments (1)

patch_EnterKeyHandling.txt (1.2 KB) - added by jfcunat 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by jfcunat

Attachment: patch_EnterKeyHandling.txt added

comment:1 Changed 9 years ago by Adam Peller

Owner: set to Jared Jurkiewicz

comment:2 Changed 9 years ago by Jared Jurkiewicz

(In [21051]) Fixing IE specific EnterKeyHandler? bug with text outside a P tag and error is thrown. refs #10497

comment:3 Changed 9 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [21052]) Fixing IE specific EnterKeyHandler? bug with text outside a P tag and error is thrown. fixes #10497

Note: See TracTickets for help on using tickets.