Skip to content

Commit

Permalink
TinyMCE options were missing in textarea attribute (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 26, 2017
1 parent e19afc0 commit a936fdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions system/modules/isotope/docs/CHANGELOG-2.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Version 2.4.2 (2017-??-??)
- DC clipboard is stored in non-persistent session in Contao 4 (#1806)
- Group and page selection in products backend did not reload (#1801)
- Help wizard was empty for payment, shipping, gallery and producttype (#1821)
- TinyMCE options were missing in textarea attribute (#1815)


Version 2.4.1 (2017-03-07)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,21 @@ public function getConditionFields($dc)
*/
public function getRTE()
{
$arrOptions = array();
$options = array();

foreach (scan(TL_ROOT . '/system/config') as $file) {
if (is_file(TL_ROOT . '/system/config/' . $file) && strpos($file, 'tiny') === 0) {
$arrOptions[] = basename($file, '.php');
if (version_compare(VERSION, '4.0', '<')) {
foreach (scan(TL_ROOT . '/system/config') as $file) {
if (is_file(TL_ROOT . '/system/config/' . $file) && strpos($file, 'tiny') === 0) {
$options[] = basename($file, '.php');
}
}
} else {
foreach (preg_grep('/^be_tiny/', array_keys(\TemplateLoader::getFiles())) as $template) {
$options[] = substr($template, 3);
}
}

return $arrOptions;
return $options;
}

/**
Expand Down

0 comments on commit a936fdb

Please sign in to comment.