ryancramerdesign / InputfieldTinyMCE

TinyMCE v6 for ProcessWire 3.0.200+
2 stars 2 forks source link

Path to custom content style css #12

Closed esszett closed 2 years ago

esszett commented 2 years ago

It’s not a real issue, maybe more a typo. In the module settings under "Content style (custom)" where its written "Enter a URL/path to a custom content CSS file. URL should be relative to ProcessWire installation root." It displays as placeholder "Example: /site/templates/styles/mycontent.css".

Entering "/site/templates/tiny-styles/my-styles.css" leads to 404, TinyMCE is searching for my file @ /site/modules/InputfieldTinyMCE/content_css/my-styles.css

Expected behavior: load my-styles.css from /site/templates/tiny-styles/my-styles.css

"Fix": entering "site/templates/tiny-styles/my-styles.css" without leading slash works.

I'm not sure what's intended, either should the placeholder/notes be corrected or the logic behind custom path?

ryancramerdesign commented 2 years ago

Thanks @esszett That was definitely a bug, not a typo. I have pushed a fix. You entered the value correctly the first time: /site/templates/tiny-styles/my-styles.css, and it should work now.

esszett commented 2 years ago

It's working now as exptected. Thank you Ryan!