Révision 05237dd8
Ajouté par Assos Assos il y a presque 7 ans
drupal7/sites/all/modules/media/modules/media_wysiwyg/media_wysiwyg.module | ||
---|---|---|
342 | 342 |
|
343 | 343 |
$filters['media_filter_paragraph_fix'] = array( |
344 | 344 |
'title' => t('Ensure that embedded Media tags are not contained in paragraphs'), |
345 |
'description' => t('This filter will strip any paragraph tags surrounding embedded Media tags. This helps to avoid the chopped up markup that can result from unexpectedly closed paragraph tags. This filter should be positioned above (before) the "Convert Media tags to markup" filter.'),
|
|
345 |
'description' => t('This filter will fix any paragraph tags surrounding embedded Media tags. This helps to avoid the chopped up markup that can result from unexpectedly closed paragraph tags. This filter should be positioned above (before) the "Convert Media tags to markup" filter.'),
|
|
346 | 346 |
'process callback' => 'media_wysiwyg_filter_paragraph_fix', |
347 |
'settings callback' => '_media_filter_paragraph_fix_settings', |
|
348 |
'default settings' => array( |
|
349 |
'replace' => 0, |
|
350 |
), |
|
347 | 351 |
'weight' => 1, |
348 | 352 |
); |
349 | 353 |
|
... | ... | |
389 | 393 |
'data-delta', |
390 | 394 |
)); |
391 | 395 |
drupal_alter('media_wysiwyg_allowed_attributes', $allowed_attributes); |
392 |
return $allowed_attributes;
|
|
396 |
return $allowed_attributes; |
|
393 | 397 |
} |
394 | 398 |
|
395 | 399 |
/** |
... | ... | |
603 | 607 |
if (empty($form_state['build_info']['args'][0])) { |
604 | 608 |
return; |
605 | 609 |
} |
606 |
|
|
610 |
|
|
607 | 611 |
$options = array(); |
608 | 612 |
|
609 | 613 |
// Add an option allowing users not to use a view mode. |
Formats disponibles : Unified diff
Weekly update of contrib modules