Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Show default block appender component when post is empty - #299

Merged
Tug merged 10 commits into
masterfrom
add/default-block-appender
Dec 3, 2018
Merged

Tug merged 10 commits into
masterfrom
add/default-block-appender

Conversation

@Tug

@Tug Tug commented Nov 29, 2018 •

Copy link
Copy Markdown
Contributor

Requires WordPress/gutenberg#12434

This PR adds a default text in the content area when no blocks are available. Clicking on it will replace it with an empty paragraph block by default.
This is close to what's available in the web version with with BlockListAppender even though it's simpler at this stage.

You can test this without using the parent app if you manually set initialHtml to "" (empty string).
For instance in App.js:

<AppContainer initialHtml="" />

Comment thread src/app/AppContainer.js Resolved
@Tug
Tug force-pushed the add/default-block-appender branch from 005cb0a to 735ca4a Compare November 30, 2018 16:38
@Tug
Tug force-pushed the add/default-block-appender branch from 735ca4a to 27b20e3 Compare November 30, 2018 16:40
@Tug
Tug force-pushed the add/default-block-appender branch from 708b368 to ce464ee Compare December 3, 2018 18:37
@Tug
Tug merged commit 37270a1 into master Dec 3, 2018
@Tug
Tug deleted the add/default-block-appender branch December 3, 2018 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants