0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/footnote
Renato Atilio 4025dad5da
FIX: [rich editor] footnotes editor inside list items (#37343)
Fixes the footnote editor positioning inside list items by using a
different approach than absolute/relative to anchor the footnote
position to the ProsMirror editor: `contain: layout` with `position:
fixed`:

> If the position property is absolute or **fixed**, the containing
block may also be formed by the edge of the padding box of the nearest
ancestor element that has any of the following:
> [...]
> - A
[contain](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/contain)
value of **layout**, paint, strict or content (e.g., contain: paint;).

Source:
https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Containing_block#identifying_the_containing_block

## Before
<img width="754" height="305" alt="image"
src="https://github.com/user-attachments/assets/34864dda-4bdc-47b5-976f-bfd5e05e4d8b"
/>

## After
<img width="756" height="311" alt="image"
src="https://github.com/user-attachments/assets/2edad908-8e76-43b0-8862-280470efc6c5"
/>
2026-01-28 11:35:15 -03:00
..
assets FIX: [rich editor] footnotes editor inside list items (#37343) 2026-01-28 11:35:15 -03:00
config I18N: Update translations (#37210) 2026-01-20 11:58:39 +01:00
spec UX: add [^n] rich editor footnote input rule (#34163) 2025-08-08 09:19:48 -03:00
test/javascripts/acceptance DEV: Close footnote tooltip when trigger is removed (#34182) 2025-08-11 15:49:28 -03:00
package.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00
plugin.rb DEV: Remove obsolete register_svg_icon checks (#35067) 2025-09-30 15:51:44 +02:00
README.md
tsconfig.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00

Discourse footnotes plugin

https://meta.discourse.org/t/discourse-footnote/84533

Official footnotes Discourse plugin

Based off: github.com/markdown-it/markdown-it-footnote