Skip to content

Commit

Permalink
Change text field to rte (fix #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Jul 27, 2015
1 parent a29497e commit b05351f
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Table tl_page
*/

\System::loadLanguageFile('tl_explain');

$GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'addImage';

$GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace(
Expand All @@ -22,7 +24,7 @@
'exclude' => true,
'inputType' => 'checkbox',
'eval' => [
'submitOnChange' => true
'submitOnChange' => true,
],
'sql' => "char(1) NOT NULL default ''",
],
Expand All @@ -34,7 +36,7 @@
'filesOnly' => true,
'fieldType' => 'radio',
'mandatory' => true,
'tl_class' => 'clr'
'tl_class' => 'clr',
],
'sql' => "binary(16) NULL",
'load_callback' => [
Expand All @@ -51,7 +53,7 @@
'inputType' => 'text',
'eval' => [
'maxlength' => 255,
'tl_class' => 'w50'
'tl_class' => 'w50',
],
'sql' => "varchar(255) NOT NULL default ''",
],
Expand All @@ -62,7 +64,7 @@
'inputType' => 'text',
'eval' => [
'maxlength' => 255,
'tl_class' => 'w50'
'tl_class' => 'w50',
],
'sql' => "varchar(255) NOT NULL default ''",
],
Expand All @@ -76,7 +78,7 @@
'rgxp' => 'digit',
'nospace' => true,
'helpwizard' => true,
'tl_class' => 'clr'
'tl_class' => 'clr',
],
'sql' => "varchar(64) NOT NULL default ''",
],
Expand All @@ -86,10 +88,13 @@
'inputType' => 'textarea',
'search' => true,
'eval' => [
'style' => 'height:60px',
'decodeEntities' => true,
'tl_class' => 'clr'
'mandatory' => false,
'rte' => 'tinyMCE',
'helpwizard' => true,
'tl_class' => 'clr',
'style' => 'height:60px',
],
'explanation' => 'insertTags',
'sql' => "text NULL",
],
];

0 comments on commit b05351f

Please sign in to comment.