WordPress / gutenberg-examples

Examples for extending WordPress/Gutenberg with blocks.
1.2k stars 316 forks source link

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

Open tloureiro opened 2 years ago

tloureiro commented 2 years ago

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!

ryanwelcher commented 2 years ago

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?

tloureiro commented 2 years ago

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