gutenberg-examples icon indicating copy to clipboard operation
gutenberg-examples copied to clipboard

Content attribute type array instead of string in 03-editable block examples

Open tloureiro opened this issue 2 years ago • 2 comments

Why the type of content attribute of the 03-editable (and 03-editable-jsx) examples is array and not string? I know they work correctly but wouldn't string be a more appropriate type?

Thanks!

tloureiro avatar May 12 '22 03:05 tloureiro

It looks like the JSX version is using string and the non-JSX version is using array.

We should probably have them both set to string. Interested in putting together a pull request?

ryanwelcher avatar May 17 '22 13:05 ryanwelcher

Yes, here it is (sorry for the delay) https://github.com/WordPress/gutenberg-examples/pull/228

tloureiro avatar Sep 20 '22 23:09 tloureiro