Skip to content
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

Show default block appender component when post is empty #299

Merged
merged 10 commits into from
Dec 3, 2018

Conversation

Tug
Copy link
Contributor

@Tug Tug commented Nov 29, 2018

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="" />

src/app/AppContainer.js Outdated Show resolved Hide 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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants