Skip to main content

Footnotes

What it does

This plugin is used on footnotes or footnote like elements. Configured elements will collapse if not selected, and expand as soon as the cursor is placed in them.

Installation

First you have to switch into your project location using the command line.

cd path/to/your/project

Then you can install the plugin as follows:

npm install @xeditor/plugin-footnote --save --registry https://npm.xeditor.com:4873

Configuration

The demo configuration of the plugin looks like this:

{
pluginId: 'footnote',
ptype: 'uxxeditorfootnote',
elementTypes: ['footnote']
}

This results into the following:

  • when element footnote is not selected, it will collapse and its content will be hidden
  • when element footnote is selected, it will expand and its content will be shown

API

The API for the plugin can be found here

Buttons

This plugin exports the following button templates that can be used in your toolbar configuration:

ButtonAction
'button:xeditor.footnote.togglestate'Toggles collapse/expand of all footnotes