if you switch from text to html, and back, or if you save the message in html mode, there is no way back to WYSIWYG but using the source button

of fck editor and pasting the content of the window. To enable this, call htmlarea with the style parameter 'advanced', wich will be used as 
editor-mode switch then.
This commit is contained in:
Klaus Leithoff 2008-08-11 09:25:23 +00:00
parent ace6deee7b
commit c5a3178c77

View File

@ -120,7 +120,7 @@
if($_POST['htmlarea'])
{
$text_or_htmlarea=$html->htmlarea('message',$html->htmlspecialchars($current_message));
$text_or_htmlarea=$html->htmlarea('message',$html->htmlspecialchars($current_message),'advanced');
$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