- added tinyMCE localization setting

- don't use tiny_mce_src.js
release-0.6
alecpl 17 years ago
parent 3dd0f25333
commit 33bb9826a7

@ -39,10 +39,17 @@ function rcube_identity_form($attrib)
{
global $IDENTITY_RECORD, $OUTPUT;
$OUTPUT->include_script('tiny_mce/tiny_mce_src.js');
$tinylang = substr($_SESSION['user_lang'], 0, 2);
if (!file_exists('program/js/tiny_mce/langs/'.$tinylang.'.js'))
{
$tinylang = 'en';
}
$OUTPUT->include_script('tiny_mce/tiny_mce.js');
$OUTPUT->add_script("tinyMCE.init({ mode : 'textareas'," .
"editor_selector : 'mce_editor'," .
"apply_source_formatting : true," .
"language : '$tinylang'," .
"content_css : '\$__skin_path' + '/editor_content.css'," .
"theme : 'advanced'," .
"theme_advanced_toolbar_location : 'top'," .

Loading…
Cancel
Save