-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add way for additional styles to be added to editor. #514
Conversation
Fixes #422. Added an action so that someone could hook into where gutenberg styles are loaded and bring in an editor style of their own. I took this approach, as there is not a super clean way to mimic `add_editor_style()` without adding another global variable to WordPress, without PHP 5.3+, that I could find.
731c7cc
to
6217408
Compare
Sorry, I've been meaning to reply to this for a while, but I think we will need a more sophisticated approach here, potentially including styles for each block (defined by the block? by the theme? I'm not sure yet). See also: #422 (comment) |
Sounds good, so this will be tied in with the Server Side API for registering blocks? |
Yes, though it's not yet clear to me how it will work. Something like a combination of |
Fixes #422. Added an action so that someone could hook into where
gutenberg styles are loaded and bring in an editor style of their own.
I took this approach, as there is not a super clean way to mimic
add_editor_style()
without adding another global variable toWordPress, without PHP 5.3+, that I could find.