Skip to content

Page/RichText Footnote Validation #17

@CamLamb

Description

@CamLamb

Draftail allows copying and pasting of text from one instance to another.
If I copy text containing a footnote reference from one page to another, there won't be a footnote related to that page to display.

Current Behaviour:
The page saves fine and renders with no errors. However, there is an unlinked footnote reference in the page as there isn't a related footnote to link to.

Expected Behaviour:
On save, a validation error is raised that informs the user that there is an invalid footnote in the RichText.

Current thoughts on how to fix:
I think this is going to need a Mixin that people can add to their Page models. The mixin will define the validation logic for the footnotes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions