Skip to content

Commit

Permalink
Merge pull request #1407 from devinit/develop
Browse files Browse the repository at this point in the history
Dev to master for footnote hotfix
  • Loading branch information
akmiller01 authored Sep 13, 2024
2 parents 0443800 + 1b69ce0 commit b889a5e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/admin/footnotes/app/footnotes.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ import '../js/custom-modal-workflow';
import Footnote from '../js/decorators/Footnote';
import FootnoteSource from '../js/sources/FootnoteSource';

const draftail = window.draftail;

// Plugins for the built-in entities.
const plugins = [
// Register the plugin directly on script execution so the editor loads it when initializing.
window.draftail.registerPlugin(
{
type: 'FOOTNOTE',
source: FootnoteSource,
decorator: Footnote,
},
];

plugins.forEach(draftail.registerPlugin);
'entityTypes',
);

0 comments on commit b889a5e

Please sign in to comment.