New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for WordPress 5.0 and the new block editor #15

Open
bobbingwide opened this Issue Mar 26, 2018 · 5 comments

Comments

Projects
None yet
1 participant
@bobbingwide
Copy link
Owner

bobbingwide commented Mar 26, 2018

Since early 2017 a new Block editor has been under development. Code named Gutenberg this new editor is being developed as a feature plugin. It is expected to be merged into core for WordPress 5.0.

Over time, more content will be created using the Block editor than the Classic editor.
The new solution needs to be backward compatible with our existing solution, so there shouldn’t be a need to change anything and it should still work. But that has not yet proven to be the case.
Also, over time, more content will be created/edited using the Block editor than the Classic editor.
We need to embrace the improvements.

So, rather than being compatible with Gutenberg we need to be Gutenberg aware.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Apr 3, 2018

The first change is to ensure that the custom post types and taxonomies have show_in_rest=true. Only then will we be able to use the new block editor.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Apr 4, 2018

A subsequent stage is to add a new block that supports uploading of attachments. Optionally the block could be used to display the download links. This would not be necessary if Gutenberg provided an Add media button, with automatic linking of the attachment to the parent post.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Jan 5, 2019

A subsequent stage is to add a new block that supports uploading of attachments.
Optionally the block could be used to display the download links. This would not be necessary if Gutenberg provided an Add media button, with automatic linking of the attachment to the parent post.

Gutenberg now provides a File block. This allows uploading of the .zip file. Use the Media Library button, then use Upload files to select and upload the .zip file. It's not necessary to Select the uploaded file as we don't want the download button that WordPress provides. The File block may be deleted once used.

Note: There's a problem with the Upload button. See bobbingwide/oik-block#32

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Jan 5, 2019

Having developed a Fields block the post contents for a plugin version may no longer contain a [bw_fields] or [bw_field] shortcode. It may contain the block equivalent. The logic in oikp_the_post_oik_pluginversion() should cater for this when deciding whether or not to add the [bw_fields] shortcode to the content.

@bobbingwide

This comment has been minimized.

Copy link
Owner

bobbingwide commented Jan 6, 2019

We need a Blocks tab, similar to the Shortcodes tab.
The [blocks] shortcode is part of bobbingwide/oik-shortcodes#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment