Fixed #2155 don't render oembed in richtext editmode.

This commit is contained in:
buddha87 2016-12-12 17:18:52 +01:00
parent 22cffc27ff
commit dfb7897583
2 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,7 @@ REGEXP;
$this->text = preg_replace_callback($pattern, function ($match) use (&$oembedCount, &$maxOembedCount, &$that) {
// Try use oembed
if ($maxOembedCount > $oembedCount) {
if (!$this->edit && $maxOembedCount > $oembedCount) {
$oembed = UrlOembed::GetOembed($match[0]);
if ($oembed) {
$oembedCount++;

View File

@ -60,8 +60,6 @@ class RichTextEditor extends Widget
*/
public function init()
{
//$this->inputContent = RichText::translateEmojis($this->inputContent);
//$this->inputContent = RichText::translateMentioning($this->inputContent);
$this->inputContent = nl2br($this->inputContent);
}