[TYPO3-project-seminars] Integrating pictures into the description

Andreas Siemer a-siemer at versanet.de
Tue Jul 8 17:01:13 CEST 2008


Pat schrieb:
> With the picture-button in the editor I can integrate pictures into the description-field - Normale Bilder or Zauberbilder -, but after saving they're always  replaced by <p>&nbsp;</p>.
> The same result is after writing an image-Tag into the HTML-View, also when using "rtekeep="1".
> 
> I would be grateful to get a hint about how to integrate pictures in the description-field.

Hi Patricia,

it seems that pictures are not intended by the developers. And i do not 
know the reason ...
But there is a way to integrate them - I found it somewhere in the web 
when I was searching for the same problem.
You can set the following code in the tsconfig in the sysfolder with 
your seminars.

RTE.default {
## Enable the image button
showButtons := addToList(image)
## Tags allowed outside p and div
## Adding img tag to the default list
proc.allowTagsOutside := addToList(img)
## Do not remove img tags
proc.entryHTMLparser_db.tags.img >
}

RTE.default.FE.showButtons < RTE.default.showButtons
RTE.default.FE.proc.allowTagsOutside < RTE.default.proc.allowTagsOutside
RTE.default.FE.proc.entryHTMLparser_db.tags.img >

I have tested this on my developing-system and it works. But I really 
don´t know if there are any further consequences.

kind regards

Andreas


More information about the TYPO3-project-seminars mailing list