Skip to content
Snippets Groups Projects
Commit b1a9adaf authored by Wiktor Walc's avatar Wiktor Walc
Browse files

Issue #1971566 by wwalc: Mediaembed throws JS error with ACF enabled

parent 6cd012a2
No related branches found
No related tags found
No related merge requests found
6.x-1.x dev
[#1971566] by wwalc: Mediaembed throws JS error with ACF enabled
[#1971502] by wwalc: Mediaembed plugin should define allowedContent for ACF
[#1950498] by wwalc: Advanced Content Filter introduced in CKEditor 4.1 is now configurable in CKEditor profile.
......
......@@ -87,7 +87,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
if (element.attributes[ 'class' ] == 'media_embed') {
var fakeElement = editor.createFakeParserElement(element, 'cke_mediaembed', 'div', true);
var fakeStyle = fakeElement.attributes.style || '';
if (typeof(element.children[0].attributes) != 'undefined') {
if (element.children[0] && typeof(element.children[0].attributes) != 'undefined') {
var height = element.children[0].attributes.height,
width = element.children[0].attributes.width;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment