Currently its:
[{ "title": "ATS Styles", "items": [{ "title": "Figure", "format": "figure" }, { "title": "Div", "format": "div" } ] }]
I put this in as a test. I had noticed there was an error in the log indicating an invalid argument in the init plugin because my original JSON didn’t include the “item” element. The above JSON is being accepted by the init processor and it’s showing up in the source when I edit a resource in the manager but there is no change to the editor’s format options.
<script type="text/javascript">
Ext.ns("TinyMCERTE");
TinyMCERTE.editorConfig = {
"plugins": "advlist autolink lists charmap print preview anchor visualblocks searchreplace code fullscreen insertdatetime media table paste modxlink modximage",
"toolbar1": "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",
"toolbar2": "",
"toolbar3": "",
"connector_url": "/assets/components/tinymcerte/connector.php",
"language": "en",
"directionality": "ltr",
"menubar": "edit insert view format table tools",
"statusbar": true,
"image_advtab": true,
"paste_as_text": false,
"style_formats_merge": true,
"object_resizing": true,
"link_class_list": null,
"browser_spellcheck": false,
"content_css": [],
"image_class_list": [
{
"title": "none",
"value": ""
},
{
"title": "Full Width",
"value": "img-full"
},
{
"title": "Align Right Large",
"value": "img-right-large"
},
{
"title": "Align Right Small",
"value": "img-right-small"
},
{
"title": "Align Left Large",
"value": "img-left-large"
},
{
"title": "Align Left Small",
"value": "img-left-small"
}
],
"skin": "modx",
"relative_urls": true,
"document_base_url": "http://c0031.paas2.tx.modxcloud.com/",
"remove_script_host": true,
"entity_encoding": "named",
"enable_link_list": true,
"branding": false,
"cache_suffix": "?v=2.0.1",
"style_formats": {
"0": {
"title": "ATS Styles",
"items": [
{
"title": "Figure",
"format": "figure"
},
{
"title": "Div",
"format": "div"
}
]
},
"4": {
"title": "my Formats",
"items": [
{
"title": "Header 1",
"format": "h1"
}
]
}
}
Ext.onReady(function(){
TinyMCERTE.loadForTVs();
});
</script>