use wcf\system\exception\UserInputException;
use wcf\system\flood\FloodControl;
use wcf\system\html\input\HtmlInputProcessor;
+use wcf\system\html\upcast\HtmlUpcastProcessor;
use wcf\system\message\censorship\Censorship;
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
use wcf\system\message\QuickReplyManager;
*/
public function beginEdit()
{
+ $upcastProcessor = new HtmlUpcastProcessor();
+ $upcastProcessor->process(
+ $this->message->message,
+ 'com.woltlab.wcf.conversation.message',
+ $this->message->messageID
+ );
WCF::getTPL()->assign([
'defaultSmilies' => SmileyCache::getInstance()->getCategorySmilies(),
'message' => $this->message,
+ 'messageText' => $upcastProcessor->getHtml(),
'permissionCanUseSmilies' => 'user.message.canUseSmilies',
'wysiwygSelector' => 'messageEditor' . $this->message->messageID,
]);
<textarea id="{$wysiwygSelector}" class="wysiwygTextarea"
data-autosave="com.woltlab.wcf.conversation.messageEdit-{$message->messageID}"
data-support-mention="true"
- >{$message->message}</textarea>
+ >{$messageText}</textarea>
{capture assign=wysiwygContainerID}messageEditor{@$message->messageID}{/capture}
{include file='messageFormTabsInline' inConversationInlineEdit=true wysiwygContainerID=$wysiwygContainerID}