For more information about this repository, visit the project page at https://www.drupal.org/project/bibcite_footnotes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
698 B
29 lines
698 B
6 years ago
|
/**
|
||
|
* @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);
|