|
|
|
@ -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'," .
|
|
|
|
|