use correct filename editor-style.css on dev or editor-style-*.css listed in manifest file for tinymce editor
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace Roots\Sage\Init;
|
namespace Roots\Sage\Init;
|
||||||
|
|
||||||
|
use Roots\Sage\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Theme setup
|
* Theme setup
|
||||||
*/
|
*/
|
||||||
@@ -35,7 +37,7 @@ function setup() {
|
|||||||
add_theme_support('html5', ['caption', 'comment-form', 'comment-list']);
|
add_theme_support('html5', ['caption', 'comment-form', 'comment-list']);
|
||||||
|
|
||||||
// Tell the TinyMCE editor to use a custom stylesheet
|
// 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');
|
add_action('after_setup_theme', __NAMESPACE__ . '\\setup');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user