Closed marc-farre closed 3 years ago
After saving the record related to the richtext content you need to call RichText::postProcess($content, $record)
. This will make sure e.g. that mentionings, file upload attachments etc. are processed. Not doing this will result in unattached file uploads and other problems.
Thanks. Done second commit.
Yes! For rendering, I will replace
MarkdownView::widget(['markdown' => $page->content])
withRichText::output($page->content)
. But I'm not sure whatpostProcess
is for...