Skip to content

CKEditor enforces non-breaking space after footnotes #7892

@Openstreetmapler

Description

@Openstreetmapler

Description

In text notes, when I insert a footnote that is followed by a space (like[1] this), the space after the footnote is enforced to be a non-breaking space ( ), even if I type a regular space in its place repeatedly. This can be confirmed with the dev tools.

This issue is annoying because these spaces prevent line breaks where there is clearly no reason to prevent them:

Narrow box with text: Lorem (line break) ipsum(footnote) dolor sit (line break) amet

The HTML inside the box roughly looks like this (note the  ):

Lorem ipsum<span class="ckeditor-footnote …"></span>&nbsp;dolor sit amet

A non-ideal makeshift fix is to have two spaces after each footnote (yuck!) or to use a zero-width space followed by a regular space (tedious!).

TriliumNext Version

0.97.1

What operating system are you using?

macOS

What is your setup?

Local (no sync)

Operating System Version

macOS Monterey 12.7.5

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    State: TriageIssues that need to be verifiedckeditorRelated to ckeditor

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions