Я создаю редактор уроков. Пользователь может редактировать контент (текст, видео, ссылки, изображения и т. д.) или просматривать конечный результат (отображенный HTML-код).
Редактор работает нормально, но когда я показываю обработанный html, связанные видео на YouTube не видны.
Это часть редактора, как вы можете видеть, ссылка на видео видна:
И это «рендеринговая» версия; видео отсутствует (похоже не рендерит тег figure
и тег oembed
, но почему?):
HTML-код:
<h2>This is the header of this section</h2>
<figure class="media">
<oembed url="https://www.youtube.com/watch?v=7km4EHgkQiw&list=RDQK-Z1K67uaA&index=9"></oembed>
</figure>
<p>Please let the student introduce himself.</p><blockquote><p> ‘I was in no mood for talk and I was unpleasantly surprised to find Judy Poovey brushing her teeth at the sink. […]<br>‘Hi, Richard,’ she said, and spit out a mouthful of toothpaste. She was wearing cut-off jeans that had bizarre, frantic designs drawn on them in Magic Marker and a spandex top which revealed her intensely aerobicized midriff.<br>‘Hello,’ I said, setting to work on my tie.<br>‘You look cute today.’<br>‘Thanks.’<br>‘Got a date?’<br>I looked away from the mirror, at her. ‘What?’<br>‘Where you going?’<br>By now I was used to her interrogations.’ (pp. 51-52)</p></blockquote>
<figure class="media">
<oembed url="https://www.youtube.com/watch?v=7km4EHgkQiw&list=RDQK-Z1K67uaA&index=9">
</oembed>
</figure>