댓글에서도 에디터를 쓸 수 있는 설정을 만들어둡니다.

This commit is contained in:
MinSoo Kim 2015-06-03 21:53:23 +09:00
parent a3e307a6d0
commit f0ca885016

View file

@ -318,7 +318,7 @@ class commentController extends comment
// remove XE's own tags from the contents
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{
@ -721,7 +721,7 @@ class commentController extends comment
// remove XE's wn tags from contents
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{