[TYPO3-dam-devel] RFC: #8333: 4.2 Compatibility / DAM Linking does not work

Michiel Roos michiel at netcreators.com
Sat May 10 01:51:46 CEST 2008


+1

On May 10, 2008, at 1:43 AM, Benjamin Mack wrote:

> Hey all,
>
> Type: Urgent Fix
>
> BT Reference: http://bugs.typo3.org/view.php?id=8333
>
> Problem: When using 4.2 and the DAM, it does not work with  
> RTEHtmlarea anymore.
>
> Solution: so we need to completely shut down the DAM functionality  
> of the RTEHTMLArea and use the new Plugin architecture if 4.2 is  
> used. There is a JS check in there.
>
>
> -- 
> greetings,
> benni.
> -SDG-
> Index: compat/class.tx_dam_rtehtmlarea_browse_media.php
> ===================================================================
> --- compat/class.tx_dam_rtehtmlarea_browse_media.php	(revision 9121)
> +++ compat/class.tx_dam_rtehtmlarea_browse_media.php	(working copy)
> @@ -295,7 +295,14 @@
> 		} else {
> 			styleHeight += "px";
> 		}
> -		editor.renderPopup_insertImage(\'<img src="\'+file+\'" alt="\'+alt 
> +\'" title="\'+title+\'" style="width: \'+styleWidth+\'; height:  
> \'+styleHeight+\';"'.(($TYPO3_CONF_VARS['EXTCONF'][$this->extKey] 
> ['enableClickEnlarge'] && !(is_array($this- 
> >buttonConfig['clickEnlarge.']) && $this- 
> >buttonConfig['clickEnlarge.']['disabled']))?'  
> clickenlargesrc="\'+origFile+\'" clickenlarge="0"':'').' />\');
> +		var htmlStr = \'<img src="\'+file+\'" alt="\'+alt+\'"  
> title="\'+title+\'" style="width: \'+styleWidth+\'; height:  
> \'+styleHeight+\';"'.(($TYPO3_CONF_VARS['EXTCONF'][$this->extKey] 
> ['enableClickEnlarge'] && !(is_array($this- 
> >buttonConfig['clickEnlarge.']) && $this- 
> >buttonConfig['clickEnlarge.']['disabled']))?'  
> clickenlargesrc="\'+origFile+\'" clickenlarge="0"':'').' />\';
> +
> +			// check if the old plugin structure is used (TYPO3 4.1 and below)
> +		if (editor && editor.renderPopup_insertImage) {
> +			editor.renderPopup_insertImage(htmlStr);
> +		} else {
> +			 
> window 
> .opener.HTMLArea.Dialog["TYPO3Image"].plugin.insertImage(htmlStr);
> +		}
> 	}
> /*]]>*/
> </script>
> Index: ext_localconf.php
> ===================================================================
> --- ext_localconf.php	(revision 9121)
> +++ ext_localconf.php	(working copy)
> @@ -75,6 +75,11 @@
> 	// RTE integration - will be done without XCLASS sometimes
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/mod3/ 
> class.tx_rtehtmlarea_browse_links.php'] = PATH_txdam.'compat/ 
> class.ux_tx_rtehtmlarea_browse_links.php';
> $TYPO3_CONF_VARS['SC_OPTIONS']['typo3/browse_links.php'] 
> ['browserRendering'][] = 'EXT:'.$_EXTKEY.'/compat/ 
> class 
> .tx_dam_rtehtmlarea_browse_media 
> .php:&tx_dam_rtehtmlarea_browse_media';
> +
> +	// unset all options set by RTE HTMLArea
> +	$rteconf = unserialize($TYPO3_CONF_VARS['EXT']['extConf'] 
> ['rtehtmlarea']);
> +	$rteconf['enableDAMBrowser'] = 0;
> +	$TYPO3_CONF_VARS['EXT']['extConf']['rtehtmlarea'] =  
> serialize($rteconf);
> }
>
>
> @@ -129,4 +134,4 @@
>
>
>
> -?>
> \ No newline at end of file
> +?>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-dam mailing list
> TYPO3-team-dam at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-dam


Met vriendelijke groet,

Michiel Roos

Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/



More information about the TYPO3-team-dam mailing list