Composer Footnote Button


Hello :wave:

This theme component is to be used with Discourse Footnote plugin and it’s add an Insert Footnote button to composer.

There are a few settings:

Screenshot 2022-11-01 at 2.38.30

By default:

  • it uses superscript X1 icon what you can change with composer footnote button icon setting.

  • it shows on popup options menu in composer uncheck the put in popup menu setting to show it on toolbar section.
    Screenshot 2022-11-01 at 1.02.46


If you uncheck the put in popup menu setting than you can select from 3 groups to where you want to place this button on toolbar.

Default: insertions

  • insertions
    Screenshot 2022-11-01 at 1.08.12

  • fontStyles
    Screenshot 2022-11-01 at 1.09.15

  • extras
    Screenshot 2022-11-01 at 1.10.19


Clicking on the footnote button will insert the code. This text you can change with composer footnote button text translation.

^[This text will be in footnote]

Theme Translations:

Screenshot 2022-11-01 at 2.39.35

9 Likes

It isn’t super clear that this component only provides the button and not the functionality of the footnote plugin (the only real clue is the tag on the topic).

Why isn’t this functionality rolled into the official plugin anyway? It would be a very useful addition!

5 Likes

Thanks @nathank :slightly_smiling_face: I forget to add this important info. I updated the OP.

3 Likes