I noticed (using the Atto editor) if you embed two videos in the same text the filter will replace both videos with just a single iframe.
That's because preg_replace is used and it greedily matches everything from <video until the last </video>in the same line. Since Atto seems to concatenate everything to a single line you get this problem as soon as you have multiple video tags (with at least one opencast video) in one text.
On the flipside, if you have a text where the <video and the corresponding </video> are not on the same line the filter doesn't replace it at all.
I noticed (using the Atto editor) if you embed two videos in the same text the filter will replace both videos with just a single iframe.
That's because
preg_replace
is used and it greedily matches everything from<video
until the last</video>
in the same line. Since Atto seems to concatenate everything to a single line you get this problem as soon as you have multiple video tags (with at least one opencast video) in one text.On the flipside, if you have a text where the
<video
and the corresponding</video>
are not on the same line the filter doesn't replace it at all.