Try our conversational search powered by Generative AI!

Tiny mce global settings not working



I have an episerver 12 website (which has been upgraded from 11 lately). 

I'm trying to migrate the tiny mce settings for the updated tiny mce version using this approach as described in the documentation:

services.Configure<TinyMceConfiguration>(config =>

For some reason the default config does not work the same way as per property configuration.

Doing this renders the editor as expected:

var baseConfig = config.Default().Clone();
config.For<DynamicPage>(a => a.IntroText, baseConfig);
Weirdly enough adding a custom css for example works when adding it to the global settings but not much else.
I've tried debugging the TinyMceConfiguration but there is nothing that seems wrong as far as I can see.
Any ideas what might cause this issue?
Jan 25, 2024 22:09

Apparently the order of things is very important. :) 

Moving  services.Configure<TinyMceConfiguration>(config =>

below the call to AddCms solves the issue. Perhaps obvious!

Feb 05, 2024 21:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.