Skip to content

Commit eaa3d24

Browse files
committed
fixed the global settings for rte
1 parent 62441c2 commit eaa3d24

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

system/modules/multicolumnwizard/MultiColumnWizard.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,12 +423,15 @@ public function generate()
423423
// Store tiny mce fields
424424
if ($arrField['eval']['rte'] && strncmp($arrField['eval']['rte'], 'tiny', 4) === 0)
425425
{
426-
//TODO for CTO 3.2, 3.1, 3.0 id param hasn't row
427-
$GLOBALS['TL_RTE']['tinyMCE'][$this->strField . '_' . $strKey] = array(
428-
'id' => $this->strField . '_' . $strKey,
429-
'file' => 'tinyMCE',
430-
'type' => null
431-
);
426+
foreach ($this->varValue as $row => $value) {
427+
$tinyId = 'ctrl_' . $this->strField . '_row' . $row . '_' . $strKey;
428+
429+
$GLOBALS['TL_RTE']['tinyMCE'][$tinyId] = array(
430+
'id' => $tinyId,
431+
'file' => 'tinyMCE',
432+
'type' => null
433+
);
434+
}
432435

433436
$arrTinyMCE[] = $strKey;
434437
}

0 commit comments

Comments
 (0)