当我从管理面板创建帖子并在编辑器中使用youtube链接时,编辑器会自动从youtube获取视频并立即在编辑器中显示。

但是,当我使用自定义代码在前端显示编辑器并放置youtube URL时,无法获得视频预览。

是否有任何特定参数要传递给YouTube视频编辑器!!
这是我当前的代码,
$settings = array( \'media_buttons\' => false, \'editor_height\' => \'140px\');
$editor_id = \'video_content\';
wp_editor( \'\', $editor_id, $settings );
你知道如何做到这一点吗!!