Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Kijin Sung 2021-03-05 13:57:12 +09:00
commit a93a6097a7
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -318,7 +318,8 @@ class widgetModel extends widget
$buff[] = sprintf('$widgetStyle_info->license_link = %s;', var_export($xml_obj->license->attrs->link, true));
// preview
if(!$xml_obj->preview->body) $xml_obj->preview->body = 'preview.jpg';
if(!isset($xml_obj->preview)) $xml_obj->preview = new stdClass;
if(!isset($xml_obj->preview->body) || !$xml_obj->preview->body) $xml_obj->preview->body = 'preview.jpg';
$preview_file = sprintf("%s%s", $widgetStyle_path,$xml_obj->preview->body);
if(file_exists($preview_file)) $buff[] = sprintf('$widgetStyle_info->preview = %s;', var_export($preview_file, true));