Project

General

Profile

Actions

Bug #22454

closed

htmlArea RTE: ENTER after an image at beginning of block deletes the image

Added by Ghislain Pau over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-04-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

After inserting an image in the RTE, a line-break deletes the image. The bug is not reproduce in 1.7.12 version.

The problem arises in Firefox, WebKit and Opera. When the image is the first element at the start of a block, the cursor is positionned just after the image and the ENTER key is hit, the image is deleted.

Create a text normal content
Type some words
Line-break
Insert an image (mode Magic)
Position the cursor after the image
Line-break

The image is deleted

TYPO3 4.2.12
RTE 1.7.14 (from source)
DAM 1.1.5
Enable images in the RTE checked
Enable the DAM media browser checked

(issue imported from #M14106)


Files

Actions #1

Updated by Ghislain Pau over 14 years ago

Same problem with TYPO3 4.3.2

Actions #2

Updated by Stanislas Rolland over 14 years ago

Maybe I don't understand but I am unable to reproduce this in any of Firefox 3.6, IE8, Opera 10 or current Chrome with TYPO3 4.3.3 (should not be different than 4.3.2).

I note that after inserting an image the cursor is positioned before the image. Perhaps it would better to have it after. But neither pressing ENTER nor SHIFT-ENTER deletes the image.

line-break... you mean pressing SHIFT-ENTER ?

Note that if you select the image and press ENTER or SHIFT-ENTER in browsers other than IE8, the image gets deletes. In IE8, nothing happens. But the image is not selected after its insertion.

Please explain exactly how to reproduce in what browser.

Actions #3

Updated by Ghislain Pau over 14 years ago

Here is a wink from a dummy 4.3.3 :

http://www.ycerdan.fr/uploads/rte_images.swf

Configure the RTE via Ext. Manager to enable images
Create Page
Create normal content
Some text + pressing ENTER
Add image
Place the cursor after image
Press ENTER

The image is deleted

Hope it helps.

Actions #4

Updated by Stanislas Rolland over 14 years ago

ok, thanks, got it. The problem arises when the image is the start of a paragraph.

Actions #5

Updated by Stanislas Rolland over 14 years ago

The attached patches fix the issue in trunk and TYPO3 4.3.

Actions #6

Updated by Stanislas Rolland over 14 years ago

Committed to SVN TYPO3core branch TYPO3_4-3 (revision 7398) and trunk (revision 7399).

Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF