Index: typo3/sysext/rtehtmlarea/ext_localconf.php =================================================================== --- typo3/sysext/rtehtmlarea/ext_localconf.php (révision 7340) +++ typo3/sysext/rtehtmlarea/ext_localconf.php (copie de travail) @@ -176,6 +176,7 @@ $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Link']['objectReference'] = 'EXT:'.$_EXTKEY.'/extensions/TYPO3Link/class.tx_rtehtmlarea_typo3link.php:&tx_rtehtmlarea_typo3link'; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Link']['addIconsToSkin'] = 0; $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Link']['disableInFE'] = 1; +$TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins']['TYPO3Link']['additionalAttributes'] = 'rel'; // Add default Page TSonfig RTE configuration for enabling links accessibility icons $TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableAccessibilityIcons'] = $_EXTCONF['enableAccessibilityIcons'] ? $_EXTCONF['enableAccessibilityIcons'] : 0; if ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['enableAccessibilityIcons']) { Index: typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php =================================================================== --- typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (révision 7340) +++ typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (copie de travail) @@ -514,6 +514,7 @@ if (document.ltargetform.anchor_title) browse_links_setTitle(document.ltargetform.anchor_title.value); if (document.ltargetform.anchor_class) browse_links_setClass(document.ltargetform.anchor_class.value); if (document.ltargetform.ltarget) browse_links_setTarget(document.ltargetform.ltarget.value); + if (document.ltargetform.lrel) browse_links_setAdditionalValue("rel", document.ltargetform.lrel.value); plugin.createLink(theLink,cur_target,cur_class,cur_title,additionalValues); return false; } @@ -522,6 +523,7 @@ if (document.ltargetform.anchor_title) browse_links_setTitle(document.ltargetform.anchor_title.value); if (document.ltargetform.anchor_class) browse_links_setClass(document.ltargetform.anchor_class.value); if (document.ltargetform.ltarget) browse_links_setTarget(document.ltargetform.ltarget.value); + if (document.ltargetform.lrel) browse_links_setAdditionalValue("rel", document.ltargetform.lrel.value); plugin.createLink(theLink,cur_target,cur_class,cur_title,additionalValues); return false; } @@ -537,6 +539,7 @@ if (document.ltargetform.anchor_title) browse_links_setTitle(document.ltargetform.anchor_title.value); if (document.ltargetform.anchor_class) browse_links_setClass(document.ltargetform.anchor_class.value); if (document.ltargetform.ltarget) browse_links_setTarget(document.ltargetform.ltarget.value); + if (document.ltargetform.lrel) browse_links_setAdditionalValue("rel", document.ltargetform.lrel.value); if (cur_href!="http://" && cur_href!="mailto:") { plugin.createLink(cur_href + parameters,cur_target,cur_class,cur_title,additionalValues); } @@ -848,8 +851,9 @@ $ltarget = $this->addTargetSelector(); $lclass = $this->addClassSelector(); $ltitle = $this->addTitleSelector(); - if ($lpageId || $queryParameters || $ltarget || $lclass || $ltitle) { - $ltargetForm = $this->wrapInForm($lpageId.$queryParameters.$ltarget.$lclass.$ltitle); + $rel = $this->addRelField(); + if ($lpageId || $queryParameters || $ltarget || $lclass || $ltitle || $rel) { + $ltargetForm = $this->wrapInForm($lpageId.$queryParameters.$ltarget.$lclass.$ltitle.$rel); } return $ltargetForm; } @@ -891,6 +895,16 @@ ':''; } + function addRelField() { + return (($this->act == 'page' || $this->act == 'url' || $this->act == 'file') && $this->buttonConfig && is_array($this->buttonConfig['relAttribute.']) && $this->buttonConfig['relAttribute.']['enabled'])?' + + '.$GLOBALS['LANG']->getLL('linkRelationship',1).': + + doc->formWidth(30) . ' /> + + ':''; + } + function addQueryParametersSelector() { global $LANG; Index: typo3/sysext/rtehtmlarea/mod3/locallang.xml =================================================================== --- typo3/sysext/rtehtmlarea/mod3/locallang.xml (révision 7340) +++ typo3/sysext/rtehtmlarea/mod3/locallang.xml (copie de travail) @@ -18,6 +18,7 @@ +