Project

General

Profile

Bug #21013 ยป 11899.diff

Administrator Admin, 2009-09-08 00:17

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
$GLOBALS['SOBE']->doc->loadPrototype();
$GLOBALS['SOBE']->doc->loadExtJS();
$GLOBALS['SOBE']->doc->addStyleSheet('ext.resizable', $this->backPath . '../t3lib/js/extjs/ux/resize.css');
// make textareas resizable and flexible
if (!($GLOBALS['BE_USER']->uc['rezizeTextareas'] == '0' && $GLOBALS['BE_USER']->uc['rezizeTextareas_Flexible'] == '0')) {
$GLOBALS['SOBE']->doc->addStyleSheet('ext.resizable', $this->backPath . '../t3lib/js/extjs/ux/resize.css');
$this->loadJavascriptLib('../t3lib/js/extjs/ux/ext.resizable.js');
}
$resizableSettings = array(
'textareaMaxHeight' => $GLOBALS['BE_USER']->uc['rezizeTextareas_MaxHeight'] >0 ? $GLOBALS['BE_USER']->uc['rezizeTextareas_MaxHeight'] : '600',
'textareaFlexible' => (!$GLOBALS['BE_USER']->uc['rezizeTextareas_Flexible'] == '0'),
'textareaResize' => (!$GLOBALS['BE_USER']->uc['rezizeTextareas'] == '0'),
);
$GLOBALS['SOBE']->doc->addInlineSettingArray('', $resizableSettings);
$this->loadJavascriptLib('../t3lib/jsfunc.evalfield.js');
$this->loadJavascriptLib('../t3lib/js/extjs/ux/ext.resizable.js');
// @TODO: Change to loadJavascriptLib(), but fix "TS = new typoScript()" issue first - see bug #9494
$jsFile[] = '<script type="text/javascript" src="'.$this->backPath.'jsfunc.tbe_editor.js"></script>';
......
'dateFormat' => array('j-n-Y', 'G:i j-n-Y'),
'dateFormatUS' => array('n-j-Y', 'G:i n-j-Y'),
);
$out .= '
Ext.ns("TYPO3");
TYPO3.settings = ' . json_encode($typo3Settings) . ';';
$GLOBALS['SOBE']->doc->addInlineSettingArray('', $typo3Settings);
$this->loadJavascriptLib('../t3lib/js/extjs/tceforms.js');
// if IRRE fields were processed, add the JavaScript functions:
t3lib/js/extjs/tceforms.js (working copy)
convertTextareasResizable: function() {
var textAreas = Ext.select("*[id^=tceforms-textarea-]");
textAreas.each(function(element) {
element.addClass('resizable');
var elasticTextarea = new Ext.ux.elasticTextArea().applyTo(element.dom.id, {
minHeight: 50
});
var dwrapped = new Ext.Resizable(element.dom.id, {
minWidth: 300,
minHeight: 50,
dynamic: true
});
if (TYPO3.settings.textareaFlexible) {
var elasticTextarea = new Ext.ux.elasticTextArea().applyTo(element.dom.id, {
minHeight: 50,
maxHeight: TYPO3.settings.textareaMaxHeight
});
}
if (TYPO3.settings.textareaResize) {
element.addClass('resizable');
var dwrapped = new Ext.Resizable(element.dom.id, {
minWidth: 300,
minHeight: 50,
maxHeight: TYPO3.settings.textareaMaxHeight,
dynamic: true
});
}
});
}
typo3/sysext/setup/ext_tables.php (working copy)
'type' => 'check',
'label' => 'LLL:EXT:setup/mod/locallang.xml:enableFlashUploader',
'csh' => 'enableFlashUploader',
)
),
'rezizeTextareas' => array(
'type' => 'check',
'label' => 'LLL:EXT:setup/mod/locallang.xml:rezizeTextareas',
'csh' => 'rezizeTextareas',
),
'rezizeTextareas_MaxHeight' => array(
'type' => 'text',
'label' => 'LLL:EXT:setup/mod/locallang.xml:rezizeTextareas_MaxHeight',
'csh' => 'rezizeTextareas_MaxHeight',
'default' => 600,
),
'rezizeTextareas_Flexible' => array(
'type' => 'check',
'label' => 'LLL:EXT:setup/mod/locallang.xml:rezizeTextareas_Flexible',
'csh' => 'rezizeTextareas_Flexible',
),
),
'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xml:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
--div--;LLL:EXT:setup/mod/locallang.xml:opening,condensedMode,noMenuMode,startModule,thumbnailsByDefault,helpText,edit_showFieldHelp,titleLen,
--div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,enableFlashUploader,disableCMlayers,copyLevels,recursiveDelete,
--div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,enableFlashUploader,rezizeTextareas,rezizeTextareas_MaxHeight,rezizeTextareas_Flexible,disableCMlayers,copyLevels,recursiveDelete,
--div--;LLL:EXT:setup/mod/locallang.xml:adminFunctions,simulate'
);
typo3/sysext/setup/locallang_csh_mod.xml (working copy)
<label index="option_enableFlashUploader.alttitle">Enable Flash Uploader</label>
<label index="option_enableFlashUploader.description">This option will enable a flash-based uploader that allows you to select multiple files at once when uploading files. If you enable this option, make sure that your browser has the latest Flash plugin (Flash 9 or higher) installed in order to make this feature work.</label>
<label index="option_edit_showFieldHelp.alttitle">Context Sensitive Help mode</label>
<label index="option_rezizeTextareas.alttitle">Make Textareas Resizable</label>
<label index="option_rezizeTextareas.description">This option will make textareas resizable. You will see the rezize mouse cursor if you move mouse to the outer border of textarea.</label>
<label index="option_rezizeTextareas_MaxHeight.alttitle">Maximal Height of Textarea</label>
<label index="option_rezizeTextareas_MaxHeight.description">Define the maximal height of textarea (in Pixel).</label>
<label index="option_rezizeTextareas_Flexible.alttitle">Make Textareas Flexible</label>
<label index="option_rezizeTextareas_Flexible.description">This option will make textareas flexible. The height will grow automatically while typing. Limit is the maximal height set (default 600).</label>
<label index="option_edit_showFieldHelp.description">Defines the mode of Context Sensitive Help (CSH) in TYPO3. The default is that small help icons are shown everywhere a help item is available. You can click the icon and help will appear in a window for you.</label>
<label index="option_edit_showFieldHelp.details">Alternatively you can select that descriptions are shown inline. This is useful for people who are still learning how TYPO3 works and want to browse the backend with descriptions shown directly.
Finally experienced users will want to totally disable the help icons if they seem to just bloat the backend interface.
typo3/sysext/setup/mod/index.php (working copy)
if (!t3lib_div::inList('language,simuser', $str)) {
$str = 'option_' . $str;
}
return t3lib_BEfunc::cshItem('_MOD_user_setup', $str, $GLOBALS['BACK_PATH'], '|', false, 'margin-bottom:0px;');
return t3lib_BEfunc::cshItem('_MOD_user_setup', $str, $this->doc->backPath, '|', false, 'margin-bottom:0px;');
}
}
typo3/sysext/setup/mod/locallang.xml (working copy)
<label index="edit_RTE">Enable Rich Text Editor (if available)</label>
<label index="edit_docModuleUpload">File upload directly in Doc-module</label>
<label index="enableFlashUploader">Enable Flash Uploader (requires Flash 9+)</label>
<label index="rezizeTextareas">Make Textareas resizable</label>
<label index="rezizeTextareas_MaxHeight">Maximal Height of resizable Textarea in Pixel</label>
<label index="rezizeTextareas_Flexible">Make Textareas flexible</label>
<label index="editFunctionsTab">Edit &amp; Advanced functions</label>
<label index="edit_functions">Edit</label>
<label index="disableCMlayers">Disable Popup Context Menus</label>
    (1-1/1)