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

Allow filtering the blocks displayed in the "Continue Writing" control #1942

Closed
nylen opened this issue Jul 19, 2017 · 1 comment
Closed
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@nylen
Copy link
Member

nylen commented Jul 19, 2017

Plugins and themes should be able to customize the list of blocks that appear in the "Continue Writing" control (and potentially whether these blocks are shown on hover or always shown, see #1941 (comment)):

How can we do this? JavaScript hooks and filters:

const blockSlugs = hooks.applyFilters(
    'gutenberg_continue_writing_blocks',
    [ 'core/text', 'core/image' ]
);
@nylen nylen added Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Task Issues or PRs that have been broken down into an individual action to take labels Jul 19, 2017
@mtias mtias added the [Feature] Extensibility The ability to extend blocks or the editing experience label Nov 5, 2017
@jasmussen
Copy link
Contributor

Just noting that in case #3078 gets addressed, which I believe it will, this issue will become obsolete.

@mtias mtias closed this as completed Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

No branches or pull requests

3 participants