November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi,
From a quick look, I suspect the issue is that you're using the importcss plugin which is probably conflicting with setting the available style formats directly. I'd try removing that from the "AddPlugin()" definition.
Thanks @Paul,
Yes that has fixed it. If we are adding custom css classes to the list would we need to define the CSS file in the .ContentCss setting? We currently don't have this set. If we set this will we then need to add in the importcss plugin again?
Hi Mark.
Technically you don't need to provide a CSS file to include custom formats in the format list however, if you don't, elements with that format applied may not be visibly different from any other element or text in the editor so I'd say it's a good idea to include a CSS file using ContentCss. Even if you do add your own stylesheet, you wouldn't need the importcss plugin.
Hi,
With reference to the two articles below I'm trying to add custom styles to the TinyMCE editor. My preference is global but I've tested a single property and see the same result in both. Basically the Formats list is shown but there are no options in the list
https://docs.developers.optimizely.com/content-cloud/v12.0.0-content-cloud/docs/custom-style-formats
https://world.optimizely.com/blogs/jon-sexton/dates/2021/6/more-on-custom-style-formats-in-tinymce/
I have the code below in the initialization module.
Am I missing something really obvious? I assume yes!