bigger window for main- or login-screen messages, if using fck

This commit is contained in:
Ralf Becker 2009-11-28 10:52:03 +00:00
parent 51f8d5b7b0
commit b7b64d103b

View File

@ -17,7 +17,6 @@
function index()
{
$html =& CreateObject('phpgwapi.html');
$section = $_POST['section'];
$select_lang = $_POST['select_lang'];
$message = get_magic_quotes_gpc() ? stripslashes($_POST['message']) : $_POST['message'];
@ -119,14 +118,14 @@
if ($_POST['no-htmlarea']) $current_message = strip_tags($current_message);
if($_POST['htmlarea'] || strlen($current_message) > strlen(strip_tags($current_message)))
{
$text_or_htmlarea=$html->htmlarea('message',$current_message,'advanced');
$text_or_htmlarea = html::fckEditorQuick('message','advanced',$current_message,'400px','800px');
$htmlarea_button='<input type="submit" name="no-htmlarea" onclick="self.location.href=\''.$GLOBALS['egw']->link('/index.php',
'menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.lang('disable WYSIWYG-editor').'">';
}
else
{
$text_or_htmlarea='<textarea name="message" style="width:100%; min-width:350px; height:300px;" wrap="virtual">' .
$html->htmlspecialchars($current_message) . '</textarea>';
html::htmlspecialchars($current_message) . '</textarea>';
$htmlarea_button='<input type="submit" name="htmlarea" onclick="self.location.href=\''.
$GLOBALS['egw']->link('/index.php','menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.
lang('activate WYSIWYG-editor').'">';