Ticket #1634 (new Bug)

Opened 12 months ago

Last modified 10 months ago

Next element corrupted when delete key triggers removal of empty <P> tag.

Reported by: wizzydes Owned by:
Priority: Normal Milestone:
Component: UI : Enter Key Version: FCKeditor 2.5.1
Keywords: Confirmed Cc:

Description

I have a document containing:

<p>&nbsp;</p><div contenteditable="false" class="wizard">{my wizard content}</div><p>&nbsp;</p>

I wish to remove the gap above my DIV, so I put the caret into the paragraph and start hitting the delete key.

When the paragraph is removed, the next element (the div) is converted to a bare paragraph. i.e. code becomes <p>{my wizard content}</p><p>&nbsp;</p>

This is rather alarming considering my CMS wizard generator plugin was fairly simple to get working.

NB) The problem only occurs when DisableEnterKeyHandler is false, so I assume that it's the actual DoDelete that's doing this.

Change History

Changed 10 months ago by w.olchawa

  • keywords Confirmed added; delete convert div to p removed
  • version set to FCKeditor 2.5.1

Confirmed.

In FF2 the bug occurs as in wizzydes description

In IE and IE7 pressing delete doesn't delete anything.

Note: See TracTickets for help on using tickets.