Вход Регистрация
Файл: concrete5.7.5.6/concrete/src/Conversation/Editor/PlainTextEditor.php
Строк: 36
<?php
namespace ConcreteCoreConversationEditor;

use 
Core;

class 
PlainTextEditor extends Editor
{

    public function 
getConversationEditorAssetPointers()
    {
        return array();
    }

    public function 
outputConversationEditorReplyMessageForm()
    {
        
$this->outputConversationEditorAddMessageForm();
    }

    public function 
formatConversationMessageBody($cnv$cnvMessageBody$config = array())
    {
        
/** @var ConcreteCoreUtilityServiceText $text */
        
$text Core::make('helper/text');
        
$formatted nl2br($text->entities($cnvMessageBody));
        return 
parent::formatConversationMessageBody($cnv$formatted$config);
    }
}
Онлайн: 0
Реклама