Skip to content

Content model for main slot in editSlots and others #33

@AdSvS

Description

@AdSvS

The content is passed to editSlots in a slotUpdates array with slotname/content. EditSlots checks for each slot what the content model is in the slot definition and applies that, which is fine for added slots.
But for the main slot there is no standard content model and it can in practice be different per page.

It would be nice to have the ability to pass the content model with the content for the main slot. As a separate parameter or as part of the slotUpdates array.

Default should be wikitext and if content and content model don't match, an error should be thrown.

It seems perfectly fine to only do this for new pages. The use cases are for creating new pages or copying pages, not for editing pages.

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