mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
setting language, date- and timeformat for tinymce from the user prefs
This commit is contained in:
parent
dff8648c7e
commit
8fd573db65
@ -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.'
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user