The absolutely horrible functionality problem with this is that there is absolutely no padding between the container block and the blocks inside. Which means that it’s practically impossible to select the correct block you want to edit.)
A natural solution would be to edit the editor-styles.css.
So I created the file editor-styles.css and added add_editor_style();
But the css isn’t appearing in the editor.
What am I missing?
]]>add_editor_style()
function existed before the new editor. So themes that used it were adding styles to the old editor. When they made the new editor, they didn’t want the old themes’ styles to mess up the new editor, so you have to use both add_editor_style();
and add_theme_support('editor-styles')
. However, this will affect whatever styles are used with add_editor_styles
whether you wanted that or not.
https://developer.www.ads-software.com/block-editor/developers/themes/theme-support/#editor-styles
]]>(sorry I didn’t reply sooner)
]]>