Skip to content

Commit

Permalink
Add section to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 26, 2023
1 parent 839feac commit 083f79f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ Like scripts, you can enqueue your block's styles using the `block.json` file.

Use the `editorStyle` property to a CSS file you want to load in the editor view, and use the `style` property for a CSS file you want to load on the frontend when the block is used.

It is worth noting that, if the editor content is iframed, both of these will
load in the iframe. `editorStyle` will also load outside the iframe, so it can
be used for editor content as well as UI.

For example:

```json
Expand Down

0 comments on commit 083f79f

Please sign in to comment.