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

Adds an API for enqueuing assets to the theme or editor of gutenberg. #1420

Closed
wants to merge 1 commit into from

Commits on Jun 24, 2017

  1. Adds an API for enqueuing assets to the theme or editor of gutenberg.

    4 top level functions can be used for adding extra assets.
    
    `gutenberg_add_block_editor_style`
    `gutenberg_add_block_theme_style`
    `gutenberg_add_block_editor_script`
    `gutenberg_add_block_theme_script`
    
    Each of these will register the assets provided to the respective
    location.
    
    A quote block is registered server side so that we can register styles
    to it.
    
    ** Testing Instructions **
    Verify PHPUnit tests pass.
    
    Verify that you can add custom assets to the theme and editor views.
    _NOTE_ Currently only registered blocks are supported, so you will need
    to register styles to the quote block or latest posts block.
    BE-Webdesign committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    13876a1 View commit details
    Browse the repository at this point in the history