Bug #18961 » rtehtmlarea_bugfix_8717_typo3_4-2.patch
typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (working copy) | ||
---|---|---|
var $editorNo;
|
||
var $buttonConfig = array();
|
||
public $anchorTypes = array( 'page', 'url', 'file', 'mail', 'spec');
|
||
protected $classesAnchorDefault = array();
|
||
protected $classesAnchorDefaultTitle = array();
|
||
protected $classesAnchorDefaultTarget = array();
|
||
... | ... | |
} else {
|
||
$classesAnchorArray = t3lib_div::trimExplode(',',$this->thisConfig['classesLinks'], 1);
|
||
}
|
||
$anchorTypes = array( 'page', 'url', 'file', 'mail', 'spec');
|
||
$classesAnchor = array();
|
||
$classesAnchor['all'] = array();
|
||
if (is_array($RTEsetup['properties']['classesAnchor.'])) {
|
||
... | ... | |
while(list($label,$conf)=each($RTEsetup['properties']['classesAnchor.'])) {
|
||
if (in_array($conf['class'], $classesAnchorArray)) {
|
||
$classesAnchor['all'][] = $conf['class'];
|
||
if (in_array($conf['type'], $anchorTypes)) {
|
||
if (in_array($conf['type'], $this->anchorTypes)) {
|
||
$classesAnchor[$conf['type']][] = $conf['class'];
|
||
if (is_array($this->thisConfig['classesAnchor.']) && is_array($this->thisConfig['classesAnchor.']['default.']) && $this->thisConfig['classesAnchor.']['default.'][$conf['type']] == $conf['class']) {
|
||
$this->classesAnchorDefault[$conf['type']] = $conf['class'];
|
||
... | ... | |
}
|
||
}
|
||
}
|
||
reset($anchorTypes);
|
||
while (list(, $anchorType) = each($anchorTypes) ) {
|
||
reset($classesAnchorArray);
|
||
while(list(,$class)=each($classesAnchorArray)) {
|
||
foreach ($this->anchorTypes as $anchorType) {
|
||
foreach ($classesAnchorArray as $class) {
|
||
if (!in_array($class, $classesAnchor['all']) || (in_array($class, $classesAnchor['all']) && is_array($classesAnchor[$anchorType]) && in_array($class, $classesAnchor[$anchorType]))) {
|
||
$selected = '';
|
||
if ($this->setClass == $class || (!$this->setClass && $this->classesAnchorDefault[$anchorType] == $class)) {
|
||
... | ... | |
var HTMLArea = window.opener.HTMLArea;
|
||
function initDialog() {
|
||
window.dialog = window.opener.HTMLArea.Dialog.TYPO3Image;
|
||
window.plugin = dialog.plugin;
|
||
window.HTMLArea = window.opener.HTMLArea;
|
||
dialog.captureEvents("skipUnload");
|
||
}
|
||
// This JavaScript is primarily for RTE/Link. jumpToUrl is used in the other cases as well...
|
||
... | ... | |
-->
|
||
<form action="" name="ltargetform" id="ltargetform">
|
||
<table border="0" cellpadding="2" cellspacing="1" id="typo3-linkTarget">'. $string;
|
||
if ((($this->act == 'page' && $this->curUrlInfo['act']=='page') || ($this->act == 'file' && $this->curUrlInfo['act']=='file') || ($this->act == 'url' && $this->curUrlInfo['act']!='page')) && $this->curUrlArray['href']) {
|
||
if ($this->act == $this->curUrlInfo['act'] && $this->act != 'mail' && $this->curUrlArray['href']) {
|
||
$form .='
|
||
<tr>
|
||
<td>
|