From 031c4e17c00e0f0f976c01614fcdd70253a1fa26 Mon Sep 17 00:00:00 2001 From: Jason Gegere Date: Thu, 12 Feb 2015 19:18:04 -0600 Subject: [PATCH] use correct filename editor-style.css on dev or editor-style-*.css listed in manifest file for tinymce editor --- lib/init.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/init.php b/lib/init.php index 0dc52dd..cd00d41 100644 --- a/lib/init.php +++ b/lib/init.php @@ -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');