Révision 5d940405
Ajouté par Assos Assos il y a environ 4 ans
drupal7/sites/all/modules/media_ckeditor/js/plugins/media/plugin.js | ||
---|---|---|
19 | 19 |
mediaLegacyWrappers: false, |
20 | 20 |
hidpi: true, |
21 | 21 |
onLoad: function() { |
22 |
// Check if this instance has widget support. |
|
23 |
// mediaPluginDefinition.hasWidgetSupport = typeof(CKEDITOR.plugins.registered.widget) != 'undefined'; |
|
22 |
// Check if Image Properties option is set, and this instance has widget support. |
|
23 |
if (!Drupal.settings.media_ckeditor.image_properties) { |
|
24 |
mediaPluginDefinition.hasWidgetSupport = typeof(CKEDITOR.plugins.registered.widget) != 'undefined'; |
|
25 |
} |
|
24 | 26 |
// Add dependency to widget plugin if possible. |
25 | 27 |
if (Drupal.settings.ckeditor.plugins['media'].compareVersions(CKEDITOR.version, '4.3') >= 0 && mediaPluginDefinition.hasWidgetSupport) { |
26 | 28 |
mediaPluginDefinition.requires.push('widget'); |
Formats disponibles : Unified diff
Weekly update of contrib modules