Skip to content

For a table block add s&r for the header, footer and caption #68

@sdonkers

Description

@sdonkers

See example table block.
Add a post with this block.

`

kolom rij 1kolom rij 2
rij 1rij 2
rij 3rij 4
footer rij 1footer rij 2
caption rij `

Then do a search and replace for "rij". Only 4 items are found.
Cause:
in filter.tsx for table S&R only filters on the body content and not on the content of the header, footer or caption.

case 'core/table': replaceBlockAttribute( args, 'body' ); break;

solution :
add
'replaceBlockAttribute(args, 'foot');
replaceBlockAttribute(args, 'head');
replaceBlockAttribute(args, 'caption');'

to the code to do a S&R for the header, footer and caption.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions