mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Fix #1813 show textarea if HTML is not allowed in signature
This commit is contained in:
parent
bfc1c5d11a
commit
7e9e33765c
1 changed files with 8 additions and 0 deletions
|
|
@ -234,6 +234,10 @@ class memberView extends member
|
||||||
$option->editor_toolbar_hide = 'Y';
|
$option->editor_toolbar_hide = 'Y';
|
||||||
$option->editor_skin = $member_config->signature_editor_skin;
|
$option->editor_skin = $member_config->signature_editor_skin;
|
||||||
$option->sel_editor_colorset = $member_config->sel_editor_colorset;
|
$option->sel_editor_colorset = $member_config->sel_editor_colorset;
|
||||||
|
if (!$option->allow_html)
|
||||||
|
{
|
||||||
|
$option->editor_skin = 'textarea';
|
||||||
|
}
|
||||||
|
|
||||||
Context::set('editor', getModel('editor')->getEditor(0, $option));
|
Context::set('editor', getModel('editor')->getEditor(0, $option));
|
||||||
}
|
}
|
||||||
|
|
@ -333,6 +337,10 @@ class memberView extends member
|
||||||
$option->editor_toolbar_hide = 'Y';
|
$option->editor_toolbar_hide = 'Y';
|
||||||
$option->editor_skin = $member_config->signature_editor_skin;
|
$option->editor_skin = $member_config->signature_editor_skin;
|
||||||
$option->sel_editor_colorset = $member_config->sel_editor_colorset;
|
$option->sel_editor_colorset = $member_config->sel_editor_colorset;
|
||||||
|
if (!$option->allow_html)
|
||||||
|
{
|
||||||
|
$option->editor_skin = 'textarea';
|
||||||
|
}
|
||||||
|
|
||||||
Context::set('editor', getModel('editor')->getEditor($member_info->member_srl, $option));
|
Context::set('editor', getModel('editor')->getEditor($member_info->member_srl, $option));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue