Closed ottz0 closed 11 months ago
The cp_css
option is only applied in the control panel (cp), in order to give an indication of the style during editing.
Only the class
is applied to the rendered page, you can then style that through your site CSS.
Check the docs for full details of all the options: https://jacksleight.dev/docs/bard-texstyle/styles#options
Bug Description
The applied styles are viewable in the wysiwyg editor but are not translated onto the live pages. So I can only see them in the editor not on the page.
'class' => 'introduction', // Is ok and rendered 'cp_css' => 'font-size: 1.25em; background-color:blue', // Does not get applied to the rendered page only viewable in the wysiwyg editor
How to Reproduce
Extra Detail
I've refreshed page and used
php artisan cache:clear
Environment
Statamic Addons: 9 Antlers: runtime Stache Watcher: Disabled Static Caching: Disabled Version: 4.35.0 PRO
Statamic Addons aerni/font-awesome: 2.0.0 anakadote/statamic-recaptcha: 1.0.10 doublethreedigital/static-cache-manager: 3.1.2 goldnead/statamic-toc: 1.4 jacksleight/statamic-bard-texstyle: 3.1.4 simonridley/tracking-code-manager: 1.0.2 stoffelio/statamic-404-logger: 1.0.1 teamnovu/statamic-images-missing-alt: 1.0.2 withcandour/aardvark-seo: 3.0.0