TYPO3 CMS  TYPO3_6-2
FormWizard.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\T3editor;
3 
22 class FormWizard {
23 
31  public function main($parameters, $pObj) {
32  $t3editor = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\T3editor\\T3editor');
33  if (!$t3editor->isEnabled()) {
34  return;
35  }
36  if ($parameters['params']['format'] !== '') {
37  $t3editor->setModeByType($parameters['params']['format']);
38  } else {
39  $t3editor->setMode(\TYPO3\CMS\T3editor\T3editor::MODE_MIXED);
40  }
41  $config = $GLOBALS['TCA'][$parameters['table']]['columns'][$parameters['field']]['config'];
42  $doc = $GLOBALS['SOBE']->doc;
43  $attributes = 'rows="' . $config['rows'] . '" ' . 'cols="' . $config['cols'] . '" ' . 'wrap="off" ' . 'style="' . $config['wizards']['t3editor']['params']['style'] . '" ' . 'onchange="' . $parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] . '" ';
44  $parameters['item'] = '';
45  $parameters['item'] .= $t3editor->getCodeEditor($parameters['itemName'], 'fixed-font enable-tab', $parameters['row'][$parameters['field']], $attributes, $parameters['table'] . ' > ' . $parameters['field'], array(
46  'target' => (int)$pObj->target
47  ));
48  $parameters['item'] .= $t3editor->getJavascriptCode($doc);
49  return '';
50  }
51 
52 }
main($parameters, $pObj)
Definition: FormWizard.php:31
$parameters
Definition: FileDumpEID.php:15
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]