Hide editor toolbar by default on mobile when composing new message

This commit is contained in:
Kijin Sung 2021-03-02 23:24:04 +09:00
parent 008af51873
commit 5ddb883856

View file

@ -272,6 +272,10 @@ class communicationView extends communication
$option->editor_skin = $this->config->editor_skin; $option->editor_skin = $this->config->editor_skin;
$option->sel_editor_colorset = $this->config->editor_colorset; $option->sel_editor_colorset = $this->config->editor_colorset;
$option->editor_focus = Context::get('source_message') ? 'Y' : 'N'; $option->editor_focus = Context::get('source_message') ? 'Y' : 'N';
if(Context::get('m'))
{
$option->editor_toolbar_hide = 'Y';
}
$editor = $oEditorModel->getEditor(getNextSequence(), $option); $editor = $oEditorModel->getEditor(getNextSequence(), $option);
$editor = $editor . "\n" . '<input type="hidden" name="temp_srl" value="" />' . "\n"; $editor = $editor . "\n" . '<input type="hidden" name="temp_srl" value="" />' . "\n";
Context::set('editor', $editor); Context::set('editor', $editor);