check manual inserted document

This commit is contained in:
Xvezda 2015-04-15 01:39:04 +09:00
parent a4a4f93f52
commit c8a2b700cf

View file

@ -293,7 +293,7 @@ class documentController extends document
$oModuleModel = getModel('module');
$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)));
}