I’m having the same problem described in this post regarding
add_editor_style
I’d like the editor’s typography to match my site as closely as possible, and to override up some of TinyMCE’s built-in styles, so I’d love for the editor widget to honor the custom styles. They work in the regular WP editor, but not in the SiteOrigin Editor widget.
See here for comparison: http://imgur.com/a/zeqb5
Hi Amanda,
This should be fixed in the latest update of the SiteOrigin Widgets Bundle, 1.9.7? If you’re not using this version, please try updating. If this issue is still occurring for you after updating, please try clearing your browser cache.
Hi,
It now appears to be trying to load the stylesheet, however I’m using a LESS parser to convert LESS files to CSS. This works fine in the normal editor, but breaks the widget.
Please see the screenshot here: http://imgur.com/a/6hMRA
I switched to a different parser that finds the latest cache file and enqueues that directly. The widget is no longer broken, but it is also not calling the styles. The native editor still loads the files fine, as does Black Studio’s TinyMCE widget, so I will use that one in the meantime. This is how I’m calling the style currently:
Hi Amanda,
I’m going to forward this thread to the development team to see if they have any ideas what’s going wrong. I would recommend trying the upcoming update to see if that helps at all as I know there were a number of additional editor changes that should resolve a lot of developer type issues.
Hi Amanda,
Here’s what the development team said:
To clarify, when is this code set to run – filter, priority, etc?
I’m using add_editor_style() in my theme’s functions.php. It doesn’t have a priority parameter: Codex – add_editor_style()
Hi Amanda,
The hook that is adding the function that contains that style will have one – it’s very likely admin_init or after_setup_theme. Unless you’re adding the code directly to your functions.php without a hook. If that’s the case, please try adding it to one as it really shouldn’t be directly added to the functions.php.