On Umbraco 17, I choose a stylesheet CSS like /dist/css/styles.css in TinyMCE configs, but it loads it from /css/dist/css/styles.css (with an extra /css prepended). I have tried hacking the path uSync file to ~/ and ../ etc but nothing helped.
Could this be a bug and is there a workaround to it please?
It seems it’s hardcoded that’s why adds css before the path.
I was looking into this and got this workaround haven’t tried it, please check it once. (Took some help from AI):
Create a physical file at wwwroot/css/rte-proxy.css.
Inside that file, add exactly one line of code: @import url('/dist/css/styles.css');
In your Umbraco TinyMCE config, select rte-proxy.css.
Umbraco prepends /css/ and successfully loads /css/rte-proxy.css. It is happy. Your browser then reads the @import rule and automatically reaches out to fetch your real styles from the correct dist folder.