use correct filename editor-style.css on dev or editor-style-*.css listed in manifest file for tinymce editor

This commit is contained in:
Jason Gegere
2015-02-12 19:18:04 -06:00
parent 6e8e75ceac
commit 031c4e17c0

View File

@@ -2,6 +2,8 @@
namespace Roots\Sage\Init;
use Roots\Sage\Assets;
/**
* Theme setup
*/
@@ -35,7 +37,7 @@ function setup() {
add_theme_support('html5', ['caption', 'comment-form', 'comment-list']);
// Tell the TinyMCE editor to use a custom stylesheet
add_editor_style('dist/styles/editor-style.css');
add_editor_style(Assets\asset_path('styles/editor-style.css'));
}
add_action('after_setup_theme', __NAMESPACE__ . '\\setup');