In Sage 9.0.10 :
Using:
add_editor_style(asset_path('styles/tinymce.css'));
asset_path(‘styles/tinymce.css’) would output:
http://lorem.test/wp-content/themes/my-theme/dist/styles/tinymce_e8ca3004.css
But in Sage 10.3.1 (Bud 6.4.5):
Using:
$asset = \Roots\asset(‘css/tinymce.css’);
add_editor_style($asset->uri());
\Roots\asset(‘css/tinymce.css’) will output:
http://lorem.test/wp-content/themes/my-theme/public/css/tinymce.css
Which leads to the file not being found, because the generated file is called: tinymce.fcb963.css
How can this be solved / What am I missing ?