Pete Posted Saturday at 05:22 PM Share Posted Saturday at 05:22 PM Hi all, With CKEditor there was a way to have a stylesheet to change the style of things inside the editor. Is there a way of having a CSS file for that in for the TinyMCE fields? I know you can do some of this in the settings, but it's a bit restrictive when you want to use SVG and advanced CSS selectors. I have had a few occasions where clients want to have the styles in the editor match the site exactly and for some lists we've used SVG for list bullets etc and it's just easier to match up with a CSS file. Link to comment Share on other sites More sharing options...
elabx Posted Sunday at 02:03 AM Share Posted Sunday at 02:03 AM Yes! Either in the TinyMCE module settings, or in each field there are options for overriding the json config of the TinyMCE instance, and you can do sth like: site/templates/assets/tiny.css is my custom css file. In all fairness, I have only tested this in the global module config, not in the individual field context. 3 Link to comment Share on other sites More sharing options...
Pete Posted Sunday at 06:54 PM Author Share Posted Sunday at 06:54 PM Perfect thank you! Link to comment Share on other sites More sharing options...
virtualgadjo Posted 10 hours ago Share Posted 10 hours ago hi, justa little word to say you can also do this in the module config have a nice day 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now