Make style_formats controllable from Grid/Rich Text Editor data types #12435
Replies: 4 comments 2 replies
-
Agree with this, it is very clunky having to have a large config section in a string that has to be on a single line! |
Beta Was this translation helpful? Give feedback.
-
Yes!! Just had to do this for the first time in Umbraco 9, and what a step backwards. The tinyMceConfig.config method at least could be formatted in a human-readable way. |
Beta Was this translation helpful? Give feedback.
-
Has anyone found where this appSetting is read in the code? Search on Github isn't revealing anything for me. Seems slightly ironic as 'style_formats' is json so was wondering if there was a way of editing the core to treat it as json. |
Beta Was this translation helpful? Give feedback.
-
Am on 10.0.1 and still get the error as well. Am currently trying options for replacing the value for CustomConfig post the .AddBackOffice() call if possible - I'll update if I find a way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In umbraco 9, the tinymce configuration has moved to appsettings.json. Unfortunately, this makes entering the configuration clunky because the value has to be a string instead of raw json. While escaped json does work, it's not very readable and is more difficult to edit than it was in umbraco 8. This is discussed in more detail here
One potential solution would be to move control of these under the Grid/Rich Text Editor data types. It may be as simple as a textarea, though a more structured option for entering style formats would be useful, since users wouldn't need to look up documentation for how to add options to the format dropdown (would need to support grouping formats). If nothing is entered, it could fall back the format configured in appsettings.json.
Beta Was this translation helpful? Give feedback.
All reactions