Dean Leigh
02/14/2024, 8:55 AM<!-- this area is for custom config settings that should be added during TinyMCE initialization -->
<customConfig>
<!-- <config key="myKey">mySetting</config>-->
<config key="entity_encoding">raw</config>
<config key="style_formats">
[
{"title":"Headers","items":[{"title":"Header 2 (H2)","block":"h2"},{"title":"Header 3 (H3)","block":"h3"}]},
{"title":"Languages","items":[{"title":"English","inline":"span", "attributes":{"lang":"en"}},{"title":"Japanese","inline":"span", "attributes":{"lang":"ja"}},{"title":"Chinese","inline":"span", "attributes":{"lang":"zh-Hans"}}]}
]
</config>
</customConfig>
I understand this is now done in appsettings.json
Are there any tutorials or examples where I can achieve the same result?Dean Leigh
02/14/2024, 9:00 AMJamie T
02/16/2024, 6:38 PM/**umb_name:h1*/
this will then prevent the style_formats
from the appsettings being used - it's one or the other sadly. What I did was create a new json file with all of the styles in and then in a component parse the file and minimise etc and push it into the appsettings Umbraco:CMS:RichTextEditor:CustomConfig:style_formats
dynamically. Way more options this way and saves messing around with string escaping etcDean Leigh
02/17/2024, 8:29 AMhuwred
02/19/2024, 4:15 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by