The new acorn
editorStyles()
method is very useful!
How can I use it with an asset
instead of a bundle
?
The reason is that the bud-wp-editor-query
extracts the editor-specific styles into a separate asset that can be then separately used/added as editor styles.
asset('editor/app.css')->editorStyles();
would not work as editorStyles()
is implemented in `bundle´.