// assign embedded objects
MessageEmbeddedObjectManager::getInstance()->setActiveMessage('com.woltlab.wcf.conversation.message', $this->messageID);
- // TODO
- return (new HtmlOutputProcessor())->process($this->message);
+ $processor = new HtmlOutputProcessor();
+ $processor->process($this->message, 'com.woltlab.wcf.conversation.message', $this->messageID);
- // TODO
- // parse and return message
- /*MessageParser::getInstance()->setOutputType('text/html');
- return MessageParser::getInstance()->parse($this->message, $this->enableSmilies, $this->enableHtml, $this->enableBBCodes);*/
+ return $processor->getHtml();
}
/**
$this->validateBeginEdit();
- $this->validateMessage($this->conversation, $this->getHtmlInputProcessor($this->parameters['data']['message']));
+ $this->validateMessage($this->conversation, $this->getHtmlInputProcessor($this->parameters['data']['message'], $this->message->messageID));
}
/**
/**
* @inheritDoc
*/
- public function getHtmlInputProcessor($message = null) {
+ public function getHtmlInputProcessor($message = null, $objectID = 0) {
if ($message === null) {
return $this->htmlInputProcessor;
}
$this->htmlInputProcessor = new HtmlInputProcessor();
- $this->htmlInputProcessor->process($message);
+ $this->htmlInputProcessor->process($message, 'com.woltlab.wcf.conversation.message', $objectID);
return $this->htmlInputProcessor;
}