Commit 3614a88f authored by junaidpv's avatar junaidpv Committed by joseph.olstad

Issue #1995030 by tripper54, junaidpv, das-peter, Devin Carlson: Support for WYSIWYG in summary

parent 57e067f6
......@@ -103,9 +103,15 @@ function media_wysiwyg_pre_render_text_format($element) {
return $element;
}
$tagmap = _media_wysiwyg_generate_tagMap($field['#value']);
$tagmap = array();
if (isset($tagmap)) {
foreach (array('value', 'summary') as $column) {
if (isset($element[$column])) {
$tagmap += _media_wysiwyg_generate_tagMap($element[$column]['#value']);
}
}
if (!empty($tagmap)) {
$element['#attached']['js'][] = array(
'data' => array(
'tagmap' => $tagmap,
......
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