[TYPO3-dam-devel] RFC #15566: When trying to edit a media link in the RTE, the external url tab is activated

Dan Osipov dosipov at phillyburbs.com
Sat Nov 6 18:07:27 CET 2010


Committed to trunk and 1.1
Revisions 39922 and 39921 respectively

Sorry for the delay!

On 8/28/10 4:56 AM, Stanislas Rolland wrote:
> Hi DAM team,
>
> This is an SVN patch request.
>
> Type:
> Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=15566
>
> Branches:
> trunk
>
> Problem:
> Using htmlArea 2.0 (TYPO3 4.4), after selecting a media link in the RTE,
> the link dialogue opens on the external url tab instead of the media tab.
>
> The problem arises because the "external" attribute is set on the a-tag
> by the RTE transformation. The "external" attribute is set on the way to
> the RTE because the dam media-to-a-tag transformation makes the href an
> absolute url. An a-tag with already absolute url href when coming from
> the database is assumed to be referencing an external url.
>
> Solution:
> Unset the "external" key in the browse_links current url array, if the
> "tx_dam" attribute is set. This can be done when the url is parsed
> through the dam interface to tx_rtehtmlarea_browse_links.
>
> Regards,
> Stanislas

-- 
Dan Osipov
http://danosipov.com/blog


More information about the TYPO3-team-dam mailing list