Alexander O'Neill 6 years ago
parent
commit
78328c3129
  1. 6
      bibcite_footnotes.module
  2. 1
      js/replace_citations.js

6
bibcite_footnotes.module

@ -13,7 +13,7 @@ use Drupal\bibcite_footnotes\CitationTools;
use Drupal\bibcite_footnotes\Plugin\Filter\ReferenceFootnotesFilter; use Drupal\bibcite_footnotes\Plugin\Filter\ReferenceFootnotesFilter;
use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldConfig;
use Drupal\core\Ajax\SettingsCommand; use Drupal\core\Ajax\SettingsCommand;
use Symfony\Component\HttpFoundation\Request;
/** /**
* Implements hook_theme(). * Implements hook_theme().
@ -212,7 +212,8 @@ function bibcite_footnotes_preprocess_bibcite_footnote_link(&$variables) {
} }
function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$form_state) { function bibcite_footnotes_inline_entity_form_entity_form_alter(&$form, FormStateInterface &$form_state) {
$form['#save_entity'] = TRUE;
$ief = $form_state->get('inline_entity_form'); $ief = $form_state->get('inline_entity_form');
if ($ief) { if ($ief) {
$serializer = \Drupal::service('serializer'); $serializer = \Drupal::service('serializer');
@ -260,4 +261,3 @@ function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$for
} }
} }
} }

1
js/replace_citations.js

@ -12,7 +12,6 @@
Drupal.behaviors.bibciteFootnotesReplaceCitations = { Drupal.behaviors.bibciteFootnotesReplaceCitations = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
alert('got here');
if (CKEDITOR.instances) { if (CKEDITOR.instances) {
for (var instance in CKEDITOR.instances) { for (var instance in CKEDITOR.instances) {
var editor = CKEDITOR.instances[instance]; var editor = CKEDITOR.instances[instance];

Loading…
Cancel
Save