Commit 12602390 authored by ron_s's avatar ron_s Committed by joseph.olstad

Issue #2496461 by joseph.olstad, ron_s, kalabro: CKEditor Strips out Picture...

Issue #2496461 by joseph.olstad, ron_s, kalabro: CKEditor Strips out Picture Tags When Inserting Images of Picture Type
parent b1e1b296
......@@ -597,6 +597,15 @@ function media_wysiwyg_file_displays_alter(&$displays, $file, $view_mode) {
}
}
}
// For integration/support of the picture module https://www.drupal.org/project/picture.
// Disable Picture display in WYSIWYG mode. Normal <img> will be rendered
// instead. CKEditor and Media WYSIWYG modules with render with common <img>
// while frontend will render full <picture> output as usual.
if (module_exists('picture')) {
if (!empty($file->override['wysiwyg']) && !empty($displays['file_field_picture']['status'])) {
$displays['file_field_picture']['status'] = 0;
}
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment