-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels