Project

General

Profile

Actions

Bug #24865

closed

Standalone images in RTE-enabled field not rendered in frontend

Added by Peter L almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-01-27
Due date:
% Done:

0%

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

Description

After upgrade to 4.5.0 i have a problem, that all images in frontend missing, that are allone in a p-tag.

<p><img height="156" width="125" src="uploads/bla.jpg" /></p>
showing:
<p> </p>

but when something else is inside the paragraph, the image will be shown:
<p>test1234<img height="156" width="125" src="uploads/bla.jpg" /></p>

(issue imported from #M17373)


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #17433: Inserting a divider (<hr>) on the RTE breaks XHTML validationClosedStanislas Rolland2007-07-04

Actions
Has duplicate TYPO3 Core - Bug #24991: Some images not rendered in frontend, but visible in RTEClosedChristian Kuhn2011-02-09

Actions
Actions #1

Updated by Peter L almost 14 years ago

html is not good here, i try with []:

in RTE the html-source is:
[p][img height="156" width="125" src="uploads/bla.jpg" /][/p]

the website output is:
[/p]

but when something else is inside the paragraph, the image will be shown:

[p]test1234[img height="156" width="125" src="uploads/bla.jpg" /][/p]

Actions #2

Updated by Jo Hasenau almost 14 years ago

Are we talking about standard images or is this about images within RTE text paragraphs?

Actions #3

Updated by Peter L almost 14 years ago

Images in RTE text paragraphs.

Actions #4

Updated by Chris topher almost 14 years ago

I can reproduce this problem.

For me it also occurs, if the image is the only tag inside a td tag.

When I view the source of an affected content element in the RTE, the path to the image is shown correctly like http://localhost/fileadmin/user_upload/Picture.jpg. Opening that picture with the browser directly works.

Actions #5

Updated by Peter L almost 14 years ago

I reviewed the problem, but i couldn't find the causation. Here my summary:

In the SQL-Database the recordset looks like this:
[img height="156" width="125" src="uploads/bla.jpg" /]

The RTE-Editor showing the image. The html-source is this (RTE added automaticly the p-tags):
[p][img height="156" width="125" src="uploads/bla.jpg" /][/p]

on the website output is:
[/p]

only when something added to the line with image, the output works fine.
[img height="156" width="125" src="uploads/bla.jpg" /] test123

on the website output is:
[p][img height="156" width="125" src="uploads/bla.jpg" /] test123[/p]

Actions #6

Updated by Chris topher almost 14 years ago

The database record seems to be OK.
The problem is somewhere in the rendering. I don't know...

Actions #7

Updated by Stanislas Rolland almost 14 years ago

Using the TypoScript Object Browser on the page that is being rendered, please report whatever you have under
lib.parseFunc_RTE.tags.img ?

Actions #8

Updated by Chris topher almost 14 years ago

Hi Stan,

I only have lib.parseFunc_RTE.tags.link.{....}.
In my case there is nothing set under lib.parseFunc_RTE.tags.img.

Actions #9

Updated by Stanislas Rolland almost 14 years ago

Problem in t3lib_cObj::encaps_lineSplit.

I expect the same to occur with current SVN branch TYPO3_4-4.

Actions #10

Updated by Jeff Segars almost 14 years ago

Just to add another data point, I can confirm the issue with 4.5 and the current SVN checkout of 4.4

Actions #11

Updated by Stanislas Rolland almost 14 years ago

The attached patch fixes this issue. Please confirm.

Actions #12

Updated by Jeff Segars almost 14 years ago

Yep, fixes it for me too in 4.4 and 4.5. Thanks for the quick patch!

Actions #13

Updated by Peter L almost 14 years ago

Fixes my problem, too. Thank you!

Actions #14

Updated by Steffen Gebert almost 14 years ago

same here, thanks Stan!

Actions #15

Updated by Chris topher almost 14 years ago

Yes, with the patch it works again. Thank you, Stan!

Actions #16

Updated by Stanislas Rolland almost 14 years ago

Committed to SVN TYPO3core trunk (revision 10358), branch TYPO3_4-5 (revision 10359) and branch TYPO3_4-4 (revision 10360).

Actions #17

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.4.7)
Actions

Also available in: Atom PDF