mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 20:38:26 +01:00
Fixed #2155 don't render oembed in richtext editmode.
This commit is contained in:
parent
22cffc27ff
commit
dfb7897583
@ -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++;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user