我遇到了与文本编辑器插件YouTube有关的问题。

huangapple go评论65阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月15日 13:01:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76250980.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定