英文:
I am getting a issue with the text editor plugin youtube
问题
当我尝试在ckeditor4中使用youtube插件添加视频时,预览可见,但当我尝试编辑内容时,ckeditor中视频的预览不可见,只有iframe预览可见。这是在编辑页面预览上出现的情况这是我在编辑页面预览上得到的
我期望在编辑时视频的预览也应该可见,期望得到的效果是这是我在编辑页面预览上想要的。
英文:
When I am trying to add the video using youtube plugin in ckeditor4 the preview is visible but when I am trying to edit the content the preview of the video is not visible in ckeditor there is only iframe preview is there This is coming on edit page preview This is what I am getting on edit page preview
I am expecting that on edit the preview of the video should also be visible expected This is what I want on my edit page preview
答案1
得分: 0
以下是您要翻译的内容:
好的,这是一个示例解决方案,可能是我从您的问题中得到的。问题在于默认情况下,ckeditor会更改youtube插件的内容。
所以您可以尝试使用这些行(allowedContent: true)。我还附上了下面的示例
带有youtube插件的ckeditor
英文:
Ok here is a example solution probably what i got from your issue. The issue is that by default ckeditor change the content of youtube plugin.
so you can try using putting these lines (allowedContent: true) . I also attaching the example below
cdeditor with youtube plugin
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论