Home › Forums › General XMetaL Discussion › Use element with attributes in the CTM file, instead of just the element tag. › Reply To: Use element with attributes in the CTM file, instead of just the element tag.
Reply to: Use element with attributes in the CTM file, instead of just the element tag.March 10, 2014 at 4:56 pm
The CTM settings that enable the functionality of these toolbar items require that each list have a different main element. This feature has no logic that will allow you to easily get it to do something with attributes.
You will need to create macros that perform the insertion according to the specific markup required. I have no examples for scripts that would work for this type of markup and it could be quite tricky. APIs that would probably be of use would include:
I'm not sure that Selection.ToggleInline would be useful in this case as there are two elements that make up a list, the list element and the list item element.