Skip to content

Custom format type for the core/button block #50535

Answered by devfle
Branch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Branch , I have checked the filter mechanism of the prop you've mentioned. Does your custom format type includes one of these tags?

const interactiveContentTags = new Set( [
'a',
'audio',
'button',
'details',
'embed',
'iframe',
'input',
'label',
'select',
'textarea',
'video',
] );

if yes, they will be filtered:

if (
withoutInteractiveFormatting &&
interactiveContentTags.has( tagName )

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Branch
Comment options

@devfle
Comment options

@devfle
Comment options

Answer selected by Branch
@Branch
Comment options

@devfle
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