We have a CKEditor body field in a project that allows authors to embed videos. We have kept the Parse embeds option enabled for the field. The YouTube embedded videos are showing fine in the control panel, but the <oembed> tag is not getting replaced with the provider’s embed code for the front end.
{
"code": {
"indentSequence": " "
},
"htmlSupport": {
"allow": [
{
"attributes": true,
"classes": true
}
]
},
"image": {
"toolbar": [
"imageStyle:alignLeft",
"imageStyle:alignRight",
"imageStyle:alignCenter",
"ImageResize:true",
"toggleImageCaption"
]
},
"link": {
"decorators": {
"openInNewTab": {
"attributes": {
"target": "_blank"
},
"label": "Open in a new tab",
"mode": "manual"
}
},
"defaultProtocol": "http:\/\/"
},
"list": {
"properties": {
"reversed": false,
"startIndex": true,
"styles": false
}
},
"style": {
"definitions": [
{
"classes": [
"pull-quote"
],
"element": "blockquote",
"name": "Pull Quote"
},
{
"classes": [
"prose-buttons-parent"
],
"element": "p",
"name": "Button"
}
]
}
}
{
"mediaEmbed": {
"previewsInData": true
}
}
Description
We have a CKEditor body field in a project that allows authors to embed videos. We have kept the Parse embeds option enabled for the field. The YouTube embedded videos are showing fine in the control panel, but the
<oembed>tag is not getting replaced with the provider’s embed code for the front end.Steps to reproduce
Additional info
CKEditor field toolbar
CKEditor field config options
Note
If we enable
previewsInDatain the CKEditor config, then the<oEmbed>tags are replaced with an iframe in the frontend on updating content.