-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Post content block: create content select pattern placeholder #57572
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
720b3c6
Initial commit - initial paragraph block can be selected.
ramonjd f1eb82a
Hacking to get patterns tab open. Need to head check this
ramonjd a13743b
Hacking to get patterns tab open. Need to head check this
ramonjd 320d454
Adding styles
ramonjd 4560881
Remove internal state, derive from props.
ramonjd 062d123
Update docs
ramonjd d609677
Show the placeholder when the block has no blocks in the editor.
ramonjd f995eb3
Reverting hasInnerBlocks change to punt to another PR. It will requir…
ramonjd f7f0a92
updates nomenclature "category" > "tab"
ramonjd 55e7342
Merge branch 'trunk' into try/post-content-select-pattern-placeholder
SaxonF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Show the placeholder when the block has no blocks in the editor.
- Loading branch information
commit d609677796ad7cd23c91a0f0c4bffb487d707817
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed this line so that the placeholder only cares whether the post content block has any child blocks, and will show even if there's saved post content.
This allows us to show the placeholder in the post editor in template preview mode as well.
Do folks see any downsides here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failing E2E tests are real and I think due to this change.
I think maybe reverting this change and then do a quick follow up to this PR to avoid a large change set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in 7560cba