Opened 17 years ago

Closed 17 years ago

#1201 closed Bug (fixed)

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

Reported by: Aleksey Onopriyenko Owned by: Frederico Caldeira Knabben
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 17 years ago by Hallvord R. M. Steen (Opera Software)

Owner: set to Frederico Caldeira Knabben

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 17 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed
Summary: Opera: Backspace & Delete don't work with tables properly.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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy