2.4 KiB
Merged BibCite Footnotes module
This package merges the original bibcite_footnotes module and the CKEditor 5-only bibcite_footnotes_2 module back into a single Drupal module named bibcite_footnotes.
What changed
- Kept the original
bibcite_footnotesmachine name. - Removed the hard dependency on
fakeobjectsfrom the main.info.ymlso the module can be used on CKEditor 5 / Drupal 10+ sites. - Added
bibcite_footnotes.ckeditor5.ymlfor CKEditor 5 toolbar integration. - Added the CKEditor 5
footnote_pickerlibrary and supporting CSS/JS frombibcite_footnotes_2. - Repointed CKEditor 5 library references from
bibcite_footnotes_2/...tobibcite_footnotes/.... - Removed the duplicate/stale CKEditor 5 PHP plugin class and old raw
js/ckeditor5plugin files to avoid competing CKEditor 5 plugin definitions. - Kept the CKEditor 4 plugin files/classes for older Drupal 9 / CKEditor 4 use.
Notes
The optional bibcite_footnotes_article_with_citations submodule is still a CKEditor 4 example configuration because its installed editor config uses editor: ckeditor and the reference_footnotes CKEditor 4 toolbar button.
On a CKEditor 5 site, enable the main module and add the Footnote/Citation button to the desired text format's CKEditor 5 toolbar. Make sure the text format allows the custom <fn value page reference> element and the filter_reference_footnotes filter is enabled.
2026-06-11 CKEditor 5 toolbar fix
Restored the CKEditor 5 plugin PHP class/assets and reference_footnotes library from the CKEditor 5 module, with namespaces and library references changed to bibcite_footnotes. Also added an explicit drupal:ckeditor5 dependency so Drupal discovers the CKEditor 5 plugin definitions reliably.
CKEditor 5 toolbar fix
The CKEditor 5 plugin definition now lists the base <fn> tag and each attribute form separately:
<fn><fn value><fn page><fn reference>
Drupal CKEditor 5 plugin validation treats tag creation and attribute creation separately, so declaring only <fn value page reference> can prevent the toolbar item from being available.
Compatibility fix
This package includes both filter plugin IDs:
filter_reference_footnotesviaReferenceFootnotesFilterfilter_footnotesviaFootnotesFilter
The second class is a compatibility alias for existing text formats whose active config already points at filter_footnotes.