mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
check manual inserted document
This commit is contained in:
parent
a4a4f93f52
commit
c8a2b700cf
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ class documentController extends document
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
$editor_config = $oModuleModel->getModuleConfig('editor');
|
$editor_config = $oModuleModel->getModuleConfig('editor');
|
||||||
|
|
||||||
if(substr_compare($editor_config->sel_editor_colorset, 'nohtml', -6) === 0)
|
if(substr_compare($editor_config->sel_editor_colorset, 'nohtml', -6) === 0 && !$manual_inserted)
|
||||||
{
|
{
|
||||||
$obj->content = preg_replace('/\r|\n/', '', nl2br(htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)));
|
$obj->content = preg_replace('/\r|\n/', '', nl2br(htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue