Révision 6fd71452
Ajouté par Julien Enselme il y a environ 10 ans
drupal7/sites/all/modules/ckeditor/plugins/mediaembed/plugin.js | ||
---|---|---|
36 | 36 |
'}' |
37 | 37 |
); |
38 | 38 |
|
39 |
editor.addCommand( 'mediaembedDialog', new CKEDITOR.dialogCommand( 'mediaembedDialog' ) ); |
|
39 |
editor.addCommand( 'mediaembedDialog', new CKEDITOR.dialogCommand( 'mediaembedDialog', { allowedContent : 'div(media_embed);iframe[*](*)' } ) );
|
|
40 | 40 |
editor.ui.addButton( 'MediaEmbed', |
41 | 41 |
{ |
42 | 42 |
label: 'Embed Media', |
... | ... | |
87 | 87 |
if (element.attributes[ 'class' ] == 'media_embed') { |
88 | 88 |
var fakeElement = editor.createFakeParserElement(element, 'cke_mediaembed', 'div', true); |
89 | 89 |
var fakeStyle = fakeElement.attributes.style || ''; |
90 |
if (typeof(element.children[0].attributes) != 'undefined') { |
|
90 |
if (element.children[0] && typeof(element.children[0].attributes) != 'undefined') {
|
|
91 | 91 |
var height = element.children[0].attributes.height, |
92 | 92 |
width = element.children[0].attributes.width; |
93 | 93 |
} |
Formats disponibles : Unified diff
Update CKEditor