Categories: WordPress News

Write Books With the Block Editor

<div style&equals;"text-align&colon;center"><&sol;div><div>&NewLine;<p>If you need a little push to start writing this winter&comma; in the comfort of your familiar editor&comma; here it is&excl; You can now use the Block Editor to create electronic books and other documents—all completely offline&period; What a full circle moment for Gutenberg&excl;<&sol;p>&NewLine;<figure class&equals;"wp-block-image size-large"><&sol;figure>&NewLine;<p>The Block Editor contains so many features I miss when writing in other editors&period; It produces clean&comma; semantic markup&period; You can paste in content from anywhere and the editor will clean it up for you&comma; or paste a link onto selected text to auto-link&period; The List View and Outline panels allow you to easily navigate and inspect the content&period; And we’re constantly iterating on the Block Editor&colon; more features and improvements are on the way&comma; such as refined drag and drop interactions coming in early 2025&period;<&sol;p>&NewLine;<p>All this inspired me to wrap our editor in an app that can read and write local files—just as other document editors do&period; It turns out that EPUB is the best file format to store the content&comma; because EPUB is an open standard for e-books that is essentially a ZIP file containing HTML and media—HTML like your WordPress posts&excl;<&sol;p>&NewLine;<figure class&equals;"wp-block-image size-large"><&sol;figure>&NewLine;<p>And just like that&comma; the WordPress Block Editor can also be used to write books&excl; The cool thing about EPUB files is that any e-book app&comma; such as Kindle and Apple Books&comma; can open it&period; So even if someone doesn’t have this editor&comma; they can still easily read the content&comma; which makes the files it produces portable&period;<&sol;p>&NewLine;<p>The editor allows you to create a cover&comma; so you can easily distinguish between the books or documents you write&period; It will also treat each heading as a chapter so you can easily navigate content when opened in an e-book reader&period;<&sol;p>&NewLine;<div class&equals;"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-2 wp-block-columns-is-layout-flex">&NewLine;<div class&equals;"wp-block-column is-layout-flow wp-block-column-is-layout-flow" style&equals;"flex-basis&colon;60&percnt;">&NewLine;<figure class&equals;"wp-block-image size-large"><&sol;figure>&NewLine;<&sol;div>&NewLine;<div class&equals;"wp-block-column is-layout-flow wp-block-column-is-layout-flow" style&equals;"flex-basis&colon;40&percnt;">&NewLine;<figure class&equals;"wp-block-image aligncenter size-large"><&sol;figure>&NewLine;<&sol;div>&NewLine;<&sol;div>&NewLine;<p>The term &OpenCurlyDoubleQuote;book” should be taken broadly&period; While the file that the Block Editor produces is primarily used for e-books&comma; you can create any document with it&period; It’s possible to export your document to a DOCX file in case you need it&comma; though the more complex blocks are not supported yet&period;<&sol;p>&NewLine;<p>It is still very much a nascent project&period; There’s many features left to be added&comma; such as revisions and the ability to open any externally created EPUB files&comma; or even DOCX files&comma; so keep an eye out for these in the coming weeks and months&excl; If you’re interested in this editor&comma; it’s all <a href&equals;"https&colon;&sol;&sol;github&period;com&sol;block-editors&sol;blockdocs">open source<&sol;a>&comma; and I welcome any kind of help&period;<&sol;p>&NewLine;<p>For now&comma; the <a href&equals;"https&colon;&sol;&sol;block-editors&period;github&period;io&sol;blockdocs&sol;">demo editor<&sol;a> is installable as a Progressive Web App &lpar;PWA&rpar; in Chrome&period; While it’s totally usable without installation&comma; it does give you some nice benefits such as allowing you to open the EPUB files directly from your OS&period; In the future we might wrap it in proper native apps&period; Your feedback is welcome on <a href&equals;"https&colon;&sol;&sol;github&period;com&sol;block-editors&sol;blockdocs">GitHub<&sol;a>&excl;<&sol;p>&NewLine;<&sol;div>&NewLine;

Sponsored
Sponsored
A WordPress Commenter

Recent Posts

From Treehouses to Tech: The Lifelong Friendship Behind DocsBot

For as long as Aaron Edwards and Joshua Dailey have known each other, they’ve been…

10 hours ago

Judge Reins In Discovery Fight as WP Engine Ordered to Produce Customer Data

A U.S. magistrate judge has moved to rein in the escalating discovery battle between WP…

2 days ago

Ollie’s Menu Designer Flagged for Core, With Automattic Developers Set to Help Shepherd It

Ollie’s “game-changing” Menu Designer plugin is moving toward inclusion in WordPress core. Anne McCarthy says…

6 days ago

WordPress.com Rolls Out MCP Support as Automattic Dogfoods MCP Adapter

WordPress.com has rolled out support for the Model Context Protocol (MCP), allowing AI assistants to…

7 days ago

First Ten Hosts Certified Under Secure Hosting Alliance’s Trust Seal Program

Ten hosting providers have been certified under the Secure Hosting Alliance’s new Trust Seal program,…

1 week ago

Chasing the Sun: Inside WP Accessibility Day’s 24-Hour Event & What to Expect in 2025

When WP Accessibility Day kicks off next week, someone, somewhere will always be awake. As…

1 week ago