Project

General

Profile

Actions

Bug #20233

closed

RTE doesn't know what to do with <media> tag and encodes the braces of tag

Added by Thomas Mammitzsch over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-03-24
Due date:
% Done:

0%

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

Description

if i link from RTEhtmlarea 1.7.8 to an image (using media tab in document browser) the RTE inserts the link correctly.
If i then save the document, there is shown <media 5764>this is the link</media> and no hyperlink. If i then save again, the link is not rendered in the frontend, because the braces of the <media> tag are encoded (< >)

i use the media tab from dam instead of filebrowser
(issue imported from #M10772)

Actions #1

Updated by Stanislas Rolland over 15 years ago

What version of dam are you using?

Actions #2

Updated by Administrator Admin over 15 years ago

Can confirm this bug. However, it does only appear in news items for me.
First time, media is linked correctly but after editing the news item a second time, media-tags are coded in html and links are broken.

Typo3: 4.2.6
dam: 1.1.1
tt_news: 2.5.2

Actions #3

Updated by Alban Cousinie over 15 years ago

Same problem here with regular text content (not tt_news). <a> link tags are converted to <media> on first save, then links get broken.

Typo3 4.2.6
Dam 1.1.1
rtehtmlarea 1.7.9

Actions #4

Updated by Jochen Weiland over 15 years ago

As far as I know this is caused by an incorrect load order of the dam and rtehtmlarea extensions. The RTE needs to be loaded before the DAM extension. You can change the load order in the string "extList" in localconf.php

Actions #5

Updated by Administrator Admin over 15 years ago

I checked my localconf,php and there dam comes after rtehtmlarea.

However, I check the configuration of the dam extension and found that unchecking 'media tag' option results in the correct behavior.

Could it be that this switch is implemented the wrong way?

Actions #6

Updated by Alban Cousinie over 15 years ago

The config parameter for the <media> option of the DAM extension is documented like this in the backend ;

[mediatag]
This adds the tag <media> to RTE content processing and frontend rendering. This is needed to create files links using DAM references. Additional page TSconfig may be needed to enable the media tag. See the manual for more information.

So it may not be a bug, but missing additional typoscript configuration may lead to visual appearance of the media tag in the frontend

Actions #7

Updated by Daniel Sasjadvolk over 15 years ago

Got the same problem:
Typo3: 4.2.6
dam: 1.1.1
tt_news: 2.5.2
rtehtmlarea 1.7.9

Actions #8

Updated by Jochen Rieger over 15 years ago

Had the same problem... but changes to page TS Config (allowing meda tag) and especially changes to the TCA types array helped:

"..., bodytext;;;richtext:rte_transform[flag=rte_enabled|mode=ts_css];2-2-2,..."

As far as I remember I even removed tx_dam from the mode where now only ts_css is set.

Actions #9

Updated by Daniel Sasjadvolk over 15 years ago

Could you please tell us more? Didn't really find the code you mentioned above. An exact explanation would be awesome. Thanks in advance.

Actions #10

Updated by Juris Treibahs over 15 years ago

Had the same problems with tt_news - on first save <media> tag appeared, on second save in frontend <media> appreared as text. Solved problem with tt_news by adding TS config

RTE.config.tt_news.bodytext.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_news.bodytext.types.text.proc.overruleMode = ts_css,txdam_media
RTE.config.tt_news.bodytext.types.textpic.proc.overruleMode = ts_css,txdam_media

to page TS config (select a page ->Edit page page properties ->Option tab ->TSconfig).

Befofe I tried to add this config to Template record, it did not give effect. Apparently it was because that was wrong place for RTE property.

rtehtmlarea 1.7.9
dam 1.1.1
typo3 4.2.6

Actions #11

Updated by Daniel Sasjadvolk over 15 years ago

Excellent! Worked out for me! Thank you very much Juris.

Actions #12

Updated by Jacco Lammers about 15 years ago

Works for me too! Thanks Juris!

dam 1.1.1
typo3 4.2.6
rtehtmlarea 1.7.9

Actions #13

Updated by samrat chakraborty about 15 years ago

RTE.default.proc.overruleMode = ts_css,txdam_media

add this line too in ur page TS Config

Actions #14

Updated by Stanislas Rolland about 15 years ago

Closing this issue as it is a Page TS configuration issue for using tt_news with rtehtmlarea and DAM.

DAM does configure Page TS for tt_content table but not for tt_news. See
EXT:dam/binding/mediatag/pageTSConfig.txt

Actions

Also available in: Atom PDF