From 6fe97437c3491133a9748e2c9694abda35d13e21 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Tue, 15 May 2018 03:10:28 -0300 Subject: [PATCH] Slightly hacky way to show rendered citation in references list. --- src/Plugin/CKEditorPlugin/ReferenceFootnotes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugin/CKEditorPlugin/ReferenceFootnotes.php b/src/Plugin/CKEditorPlugin/ReferenceFootnotes.php index 8c9c96e..8beb2b7 100644 --- a/src/Plugin/CKEditorPlugin/ReferenceFootnotes.php +++ b/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];