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.
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
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]
Are we talking about standard images or is this about images within RTE text paragraphs?
Images in RTE text paragraphs.
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.
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]
The database record seems to be OK.
The problem is somewhere in the rendering. I don't know...
Using the TypoScript Object Browser on the page that is being rendered, please report whatever you have under
lib.parseFunc_RTE.tags.img ?
Hi Stan,
I only have lib.parseFunc_RTE.tags.link.{....}.
In my case there is nothing set under lib.parseFunc_RTE.tags.img.
Problem in t3lib_cObj::encaps_lineSplit.
I expect the same to occur with current SVN branch TYPO3_4-4.
Just to add another data point, I can confirm the issue with 4.5 and the current SVN checkout of 4.4
The attached patch fixes this issue. Please confirm.
Yep, fixes it for me too in 4.4 and 4.5. Thanks for the quick patch!
Fixes my problem, too. Thank you!
Yes, with the patch it works again. Thank you, Stan!
Committed to SVN TYPO3core trunk (revision 10358), branch TYPO3_4-5 (revision 10359) and branch TYPO3_4-4 (revision 10360).
- Target version deleted (
4.4.7)
Also available in: Atom
PDF