【发布时间】:2019-08-02 05:00:56
【问题描述】:
我正在创建一个课程编辑器。用户可以编辑内容(文本、视频、链接、图像等)或查看最终结果(呈现的 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>
【问题讨论】:
标签: javascript html reactjs ckeditor5