Alexander O'Neill
6 years ago
3 changed files with 40 additions and 9 deletions
@ -0,0 +1,28 @@ |
|||||||
|
/** |
||||||
|
* @file |
||||||
|
* Provides JavaScript additions to entity embed dialog. |
||||||
|
* |
||||||
|
* This file provides popup windows for previewing embedded entities from the |
||||||
|
* embed dialog. |
||||||
|
*/ |
||||||
|
|
||||||
|
(function ($, Drupal) { |
||||||
|
|
||||||
|
"use strict"; |
||||||
|
|
||||||
|
Drupal.behaviors.bibciteFootnotesReplaceCitations = { |
||||||
|
attach: function attach(context, settings) { |
||||||
|
|
||||||
|
var formats = drupalSettings.editor.formats; |
||||||
|
if (formats) { |
||||||
|
for (var key in formats) { |
||||||
|
var format = drupalSettings.editor.formats[key]; |
||||||
|
if (format.editor == "ckeditor") { |
||||||
|
format.editorSettings.referenceFootnotes_list = drupalSettings.bibcite_footnotes.references; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
})(jQuery, Drupal); |
Loading…
Reference in new issue