Skip to content

How to add options to list plugin? #2923

Closed Answered by zbeyens
mstelz asked this question in Q&A
Discussion options

You must be logged in to vote

That's indeed tricky since the plugin is composed of two other ones. Here's how to do it:

createListPlugin({
overrideByKey: {
[ELEMENT_UL]: {
options: {
validLiChildrenTypes: [ELEMENT_IMAGE],
},
},
},
}),

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mstelz
Comment options

@zbeyens
Comment options

Answer selected by mstelz
@mstelz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants