Developer at PressTigers - Regular WordPress Core Contributor Dev - WordPress Theme Reviewer - Open Source Contributor in free time - International liaison for Urdu Support Forum @WordPress [email protected] @Software_abi
of..? - A What You See Is What You Get (WYSIWYG) Experience - Content Paradigms is BLOCKS! - Comes with Simple Blocks but you can develop custom blocks [email protected] @Software_abi
a modern frontend library owned by Facebook - Mostly use ES6 and JSX syntax, which makes writing React.js much easier - Gutenberg uses attributes to interact with the blocks - Blocks are then saved in the post content as HTML, JSON data in HTML comments or a combination of two - When you register a block, you have an edit method and a save method
responsible for turning the attributes into HTML that will then be shown on posts and pages. - On the editor side, Gutenberg reads attributes for each block, and then sets the editor method with those attributes - The editor method then allows users to interact with the block and change the attributes - The editor method can include the preview of the block how it looks in the save method
- Metaboxes will be supported - Custom Post Types will be supported - Shortcodes will continue to work - You don’t need a specific theme to use Gutenberg - Accessibility is not an afterthought - Gutenberg call out will be added in future WP releases [email protected] @Software_abi
issues will be resolved - Integration with Calypso, offering opt-in users - 100k+ sites having made 250k+ post using Gutenberg - Core merge, beginning the 5.0 release cycle - 5.0 beta releases and translations completed - Mobile version of Gutenberg by the end of the year
give you a basic idea how can we develop a custom block - Modern JS requires very least build process. Browsers can’t read ES6 and JSX so code needs to be compiled for the browser ease. - For setting up build process we need Node.js and npm(Node Package Manager) https://nodejs.org/en/ - Different ways to setup Babel and Webpack for build process or we can any use zero configuration tool like Create Guten Block https://github.com/ahmadawais/create-guten-block
developed a Simple Paragraph Block for you to give an idea how can we kick start for the Gutenberg custom block development - Clone/download Simple Paragraph Block code from my Github repo https://github.com/abdullah1908/simple-paragraph-block
function to change the attributes - isSelected - see if the user has selected your block - Number of editor components - https://github.com/WordPress/gutenberg/tree/master/components - https://github.com/WordPress/gutenberg/tree/master/blocks
Yesss!! You can contribute to Gutenberg in many ways: - By reporting bugs on Gutenberg Github repo: https://github.com/WordPress/gutenberg The @Daniel Bachhuber introduced the Gutenberg Plugin Compatibility Database Simply launch an environment, test the installed plugin, and record your results. https://plugincompat.danielbachhuber.com/ [email protected] @Software_abi