Browse Source

Slightly hacky way to show rendered citation in references list.

config_filter
Alexander O'Neill 7 years ago
parent
commit
6fe97437c3
  1. 3
      src/Plugin/CKEditorPlugin/ReferenceFootnotes.php

3
src/Plugin/CKEditorPlugin/ReferenceFootnotes.php

@ -88,7 +88,8 @@ class ReferenceFootnotes extends CKEditorPluginBase {
print_r($ref_id);
$build = $view_builder->view($ref_item, 'citation');
$output = trim(strip_tags(render($build)));
$options[] = [$output, $ref_id];
//$options[] = [$output, $ref_id];
$options[] = [$output, $output];
}
return ['referenceFootnotes_list' => $options];

Loading…
Cancel
Save