Opened 9 years ago

Closed 9 years ago

#1201 closed Bug (fixed)

Opera: Backspace & Delete don't work in table cells

Reported by: aleksey Owned by: fredck
Priority: Normal Milestone: Opera Compatibility
Component: General Version:
Keywords: Cc:

Description

If the keyboard cursor is placed into a table's cell pressing Delete or Backspace removes the cell.

If a table is selected pressing Delete removes the cell instead of the whole table.

Tested with Opera 9.5 alpha (build 9500).

Opera 9.23 doesn't have this bugs.

Change History (2)

comment:1 Changed 9 years ago by hallvord@…

  • Owner set to fredck

Happens on deleting BR which is the only child of TD - is this some logic to avoid empty elements kicking in?

A possible fix would be this:

if ( oEditor.FCKBrowserInfo.IsGeckoLike )
	//oCell.innerHTML = GECKO_BOGUS ;
	oCell.appendChild( oEditor.FCK.EditorDocument.createTextNode('') );

..Gecko doesn't like to loose its injection of BOGUS though.

Maybe call FCKTools.AppendBogusBr instead, and change FCKTools.CreateBogusBR to detect Opera and insert empty text nodes?

comment:2 Changed 9 years ago by fredck

  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from Opera: Backspace & Delete don't work with tables properly. to Opera: Backspace & Delete don't work in table cells

Fixed the issue when deleting inside a cell with [933], by Hallvord suggestion.

I've created #1320 for the table delete issue to avoid having more than one issue per ticket.

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy