setting language, date- and timeformat for tinymce from the user prefs

This commit is contained in:
Ralf Becker 2005-10-11 00:27:24 +00:00
parent dff8648c7e
commit 8fd573db65

View File

@ -651,6 +651,9 @@ htmlareaConfig_'.$id.'.editorURL = '."'$this->phpgwapi_js_url/htmlarea/';";
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
tinyMCE.init({ tinyMCE.init({
mode : "exact", mode : "exact",
language: "'.$GLOBALS['egw_info']['user']['preferences']['common']['lang'].'",
plugin_insertdate_dateFormat : "'.str_replace(array('Y','m','M','d'),array('%Y','%m','%b','%d'),$GLOBALS['egw_info']['user']['preferences']['common']['dateformat']).'",
plugin_insertdate_timeFormat : "'.($GLOBALS['egw_info']['user']['preferences']['common']['timeformat'] == 12 ? '%I:%M %p' : '%H:%M').'",
elements : "'.$name.'", elements : "'.$name.'",
'.$init_options.' '.$init_options.'
}); });